Re: MSVC compilers complain about snprintf

2018-10-17 Thread Tom Lane
Andrew Dunstan writes: > The MSVC compilers are whingeing about recent changes in snprintf.c: > src\port\snprintf.c(1051): warning C4146: unary minus operator > applied to unsigned type, result still unsigned Yeah, see commit 4868e4468590bc32f9c3afed4ec795d6a7732c9d. The law of conservat

Re: MSVC compilers complain about snprintf

2018-10-17 Thread Andrew Dunstan
On 10/17/2018 05:31 PM, Andres Freund wrote: Hi, On 2018-10-17 17:27:14 -0400, Andrew Dunstan wrote: The MSVC compilers are whingeing about recent changes in snprintf.c: src\port\snprintf.c(1051): warning C4146: unary minus operator applied to unsigned type, result still unsigned

Re: MSVC compilers complain about snprintf

2018-10-17 Thread Andres Freund
Hi, On 2018-10-17 17:27:14 -0400, Andrew Dunstan wrote: > > The MSVC compilers are whingeing about recent changes in snprintf.c: > > >src\port\snprintf.c(1051): warning C4146: unary minus operator >applied to unsigned type, result still unsigned > > > The line in question reads: > >

MSVC compilers complain about snprintf

2018-10-17 Thread Andrew Dunstan
The MSVC compilers are whingeing about recent changes in snprintf.c: src\port\snprintf.c(1051): warning C4146: unary minus operator applied to unsigned type, result still unsigned The line in question reads: uvalue = -(unsigned long long) value; cheers andrew -- Andrew Dunstan