1 parent 89c2582 commit 26baf70Copy full SHA for 26baf70
1 file changed
tests/unicode_tests.cpp
@@ -185,8 +185,7 @@ void brute_force_tests() {
185
}
186
for (size_t flip = 0; flip < 1000; ++flip) {
187
// 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
+ UTF8[rand() % UTF8.size()] ^= uint8_t(1 << (rand() % 8)); // we flip exactly one bit
190
bool is_ok =
191
simdjson::validate_utf8((const char *)UTF8.data(), UTF8.size());
192
bool is_ok_basic =
0 commit comments