Skip to content

Commit 26baf70

Browse files
author
Daniel Lemire
committed
Pedantic compiler
1 parent 89c2582 commit 26baf70

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/unicode_tests.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ void brute_force_tests() {
185185
}
186186
for (size_t flip = 0; flip < 1000; ++flip) {
187187
// we are going to hack the string as long as it is UTF-8
188-
UTF8[rand() % UTF8.size()] ^= uint8_t(1)
189-
<< (rand() % 8); // we flip exactly one bit
188+
UTF8[rand() % UTF8.size()] ^= uint8_t(1 << (rand() % 8)); // we flip exactly one bit
190189
bool is_ok =
191190
simdjson::validate_utf8((const char *)UTF8.data(), UTF8.size());
192191
bool is_ok_basic =

0 commit comments

Comments
 (0)