diff --git a/c-programming/math/opt_int_div.h b/c-programming/math/opt_int_div.h index 0484269..71031b9 100644 --- a/c-programming/math/opt_int_div.h +++ b/c-programming/math/opt_int_div.h @@ -23,7 +23,7 @@ #define INT_BIN_DIV(a, b) ((a) >> (uintmax_t) log2l((b))) #define INT_DIV_NEG_RESULT_SIGN(a, b) \ /* the sign is negative only if one of the numbers is negative */ \ - (((a) < 0) ^ ((b) < 0)) /* 1 if sign is negative else 0 */ + (((a) < 0) != ((b) < 0)) /* 1 if sign is negative else 0 */ #define INT_ABS(x) ((x) < 0 ? -(x) : (x)) #define LOG2_DEC_PORTION(b) fmodl(log2l(INT_ABS((b))), 1.l) #define OPT_INT_DIV_TEST(b) \