We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b521719 commit 95e6fc2Copy full SHA for 95e6fc2
1 file changed
include/simdjson/portability.h
@@ -46,10 +46,10 @@ static inline int hamming(uint64_t input_num) {
46
#include <x86intrin.h>
47
48
static inline bool add_overflow(uint64_t value1, uint64_t value2, uint64_t *result) {
49
- return __builtin_uaddll_overflow(value1, value2, static_cast<unsigned long long*>(result));
+ return __builtin_uaddll_overflow(value1, value2, (unsigned long long*)result);
50
}
51
static inline bool mul_overflow(uint64_t value1, uint64_t value2, uint64_t *result) {
52
- return __builtin_umulll_overflow(value1, value2, static_cast<unsigned long long *>(result));
+ return __builtin_umulll_overflow(value1, value2, (unsigned long long *)result);
53
54
55
/* result might be undefined when input_num is zero */
0 commit comments