]> git.sesse.net Git - stockfish/commitdiff
Silence silly MSVC warning c4146
authorMarco Costalba <mcostalba@gmail.com>
Sat, 29 Jan 2011 13:10:05 +0000 (14:10 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 29 Jan 2011 13:10:05 +0000 (14:10 +0100)
Warning C4146: unary minus operator applied to
unsigned type, result still unsigned.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/types.h

index 70b1b813c92af81edae6ff95123b18b8a54fa126..76ef4cdbb6ad385d5931382f40ed6a75219c373c 100644 (file)
@@ -27,6 +27,7 @@
 // Disable some silly and noisy warning from MSVC compiler
 #pragma warning(disable: 4800) // Forcing value to bool 'true' or 'false'
 #pragma warning(disable: 4127) // Conditional expression is constant
+#pragma warning(disable: 4146) // Unary minus operator applied to unsigned type
 
 // MSVC does not support <inttypes.h>
 typedef   signed __int8    int8_t;