From 26baf709129187909eded4f8229cc9753636d05f Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 22 Jun 2020 16:45:32 -0400 Subject: [PATCH] Pedantic compiler --- tests/unicode_tests.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unicode_tests.cpp b/tests/unicode_tests.cpp index af1e840d0..a82e4ce45 100644 --- a/tests/unicode_tests.cpp +++ b/tests/unicode_tests.cpp @@ -185,8 +185,7 @@ void brute_force_tests() { } for (size_t flip = 0; flip < 1000; ++flip) { // we are going to hack the string as long as it is UTF-8 - UTF8[rand() % UTF8.size()] ^= uint8_t(1) - << (rand() % 8); // we flip exactly one bit + UTF8[rand() % UTF8.size()] ^= uint8_t(1 << (rand() % 8)); // we flip exactly one bit bool is_ok = simdjson::validate_utf8((const char *)UTF8.data(), UTF8.size()); bool is_ok_basic =