From 8610a5421305f3e470f6f8a6d93c5cd9d05a7711 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 14 Apr 2023 09:42:45 +0200 Subject: Try to silence clang warning about dead code. --- Cython/Utility/Overflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) { -- cgit v1.2.1