tests/test_string.c

changeset 926
8fdd8d78c14b
parent 890
54565fd74e74
--- a/tests/test_string.c	Sat Oct 12 19:41:04 2024 +0200
+++ b/tests/test_string.c	Sun Oct 13 14:06:32 2024 +0200
@@ -176,8 +176,8 @@
 CX_TEST(test_strstr) {
     cxstring str = CX_STR("find the match in this string");
 
-    size_t const longstrpatternlen = 64 + cx_strstr_sbo_size;
-    size_t const longstrlen = 320 + longstrpatternlen + 14;
+    const size_t longstrpatternlen = 64 + cx_strstr_sbo_size;
+    const size_t longstrlen = 320 + longstrpatternlen + 14;
 
     // it is more expensive to use calloc here, because we will overwrite
     // the memory anyway in the test preparation - but it is more reliable

mercurial