]> granicus.if.org Git - re2c/commitdiff
Fixed test (added forgotten qualification after moving functions into 're2c' namespace).
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 12 Jul 2019 13:57:38 +0000 (14:57 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 12 Jul 2019 13:57:38 +0000 (14:57 +0100)
src/test/s_to_n32_unsafe/test.cc

index 488dab1f00f9fdbfa86a0a64d81c45d40856918d..a1f877708d2cb77aeca414b58c4bd1bf2a15f147 100644 (file)
@@ -31,7 +31,7 @@ static int32_t test_u (uint64_t i)
     char * const s_end = s + DIGITS;
     char * const s_start = u64_to_s_fastest_ever (i, s_end);
     uint32_t u = i == 0; // not equal to i
-    if (s_to_u32_unsafe (s_start, s_end, u) && u != i)
+    if (re2c::s_to_u32_unsafe (s_start, s_end, u) && u != i)
     {
         fprintf (stderr, "unsigned: expected: %lu, got: %u\n", i, u);
         return 1;
@@ -52,7 +52,7 @@ static int32_t test_i (int64_t i)
         *--s_start = '-';
     }
     int32_t j = i == 0; // not equal to i
-    if (s_to_i32_unsafe (s_start, s_end, j) && j != i)
+    if (re2c::s_to_i32_unsafe (s_start, s_end, j) && j != i)
     {
         fprintf (stderr, "signed: expected: %ld, got: %d\n", i, j);
         return 1;