diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2023-04-14 09:42:45 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2023-04-14 09:42:45 +0200 |
commit | 8610a5421305f3e470f6f8a6d93c5cd9d05a7711 (patch) | |
tree | 86a3e632aa18d297a849ea90902b7c37b0f16b8c | |
parent | d3f8684423999483b29a0333b826f02fc391d667 (diff) | |
download | cython-8610a5421305f3e470f6f8a6d93c5cd9d05a7711.tar.gz |
Try to silence clang warning about dead code.
-rw-r--r-- | Cython/Utility/Overflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/Overflow.c b/Cython/Utility/Overflow.c index 35c7673f6..78e517717 100644 --- a/Cython/Utility/Overflow.c +++ b/Cython/Utility/Overflow.c @@ -20,7 +20,7 @@ TODO: Conditionally support 128-bit with intmax_t? /////////////// Common.proto /////////////// static int __Pyx_check_twos_complement(void) { - if ((-1 != ~0)) { + if ((-1) != (~0)) { PyErr_SetString(PyExc_RuntimeError, "Two's complement required for overflow checks."); return 1; } else if ((sizeof(short) == sizeof(int))) { |