From: Marco Costalba Date: Mon, 30 Mar 2009 10:07:45 +0000 (+0200) Subject: Silence idiotic warning on two's complement of an unsigned X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d7ef09727acc11c91b4a25b775c7f6d0bf1d37d8;hp=d7ef09727acc11c91b4a25b775c7f6d0bf1d37d8 Silence idiotic warning on two's complement of an unsigned MSVC gives: warning C4146: unary minus operator applied to unsigned type, result still unsigned When finds -b where b is an unsigned integer. So rewrite the two's complement in a way to avoid the warning. Theoretically the new version is slower, but in practice changes nothing. Signed-off-by: Marco Costalba ---