commit | 7819aeb622a94be0d89caf8382f290d0266c4aed | [log] [tgz] |
---|---|---|
author | Ben Wagner <bungeman@google.com> | Wed Jun 28 22:57:41 2017 +0200 |
committer | Werner Lemberg <wl@gnu.org> | Wed Jun 28 22:57:41 2017 +0200 |
tree | 15afe3bc395e43354234e577e0cc7f4c725a97b7 | |
parent | 2e7bb5e825880301e762f41fd0efa2aa18a4421f [diff] |
Avoid Microsoft compiler warnings (#51331). While clang's sanitizer recommends a cast to unsigned for safe negation (to handle -INT_MIN), both MSVC and Visualc emit warning C4146 if an unsigned value gets negated. * include/freetype/internal/ftcalc.h (NEG_LONG, NEG_INT32), src/base/ftcalc.c (FT_MOVE_SIGN): Replace negation with a subtraction.