1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

Fix some assorted compiler warnings on Windows.

Don't overflow the result type of constant expressions.  Don't negate
unsigned types.  Define HAVE_STDBOOL_H for Visual C++ 2013 and later.

Thomas Munro
Reviewed-By: Michael Paquier and Tom Lane

Discussion: https://postgr.es/m/CAEepm%3D3%3DTDYEXUEcHpEx%2BTwc31wo7PA0oBAiNt6sWmq93MW02A%40mail.gmail.com
This commit is contained in:
Tom Lane
2018-05-01 19:38:26 -04:00
parent 41c912cad1
commit b2328bf62b
3 changed files with 6 additions and 3 deletions

View File

@ -1361,7 +1361,7 @@ sendFile(const char *readfilename, const char *tarfilename, struct stat *statbuf
char buf[TAR_SEND_SIZE];
uint16 checksum;
int checksum_failures = 0;
size_t cnt;
off_t cnt;
int i;
pgoff_t len = 0;
char *page;