diff --git a/include/simdjson/portability.h b/include/simdjson/portability.h index 833b09740..77187f2ef 100644 --- a/include/simdjson/portability.h +++ b/include/simdjson/portability.h @@ -46,7 +46,7 @@ static inline int hamming(uint64_t input_num) { #include static inline bool add_overflow(uint64_t value1, uint64_t value2, uint64_t *result) { - return __builtin_uaddl_overflow(value1, value2, (unsigned long *)result); + return __builtin_uaddll_overflow(value1, value2, (unsigned long long*)result); } static inline bool mul_overflow(uint64_t value1, uint64_t value2, uint64_t *result) { return __builtin_umulll_overflow(value1, value2, (unsigned long long *)result); diff --git a/src/stage1_find_marks.cpp b/src/stage1_find_marks.cpp index 2b3231c16..37b0b6f30 100644 --- a/src/stage1_find_marks.cpp +++ b/src/stage1_find_marks.cpp @@ -99,7 +99,7 @@ WARN_UNUSED // indicates whether the sense of any edge going to the next iteration // should be flipped bool iter_ends_odd_backslash = - add_overflow(bs_bits, odd_starts, (unsigned long long *) &odd_carries); + add_overflow(bs_bits, odd_starts, &odd_carries); odd_carries |= prev_iter_ends_odd_backslash; // push in bit zero as a potential end