testing: attempt to fix old clang
authorMichael Wallner <mike@php.net>
Tue, 15 Sep 2020 19:48:46 +0000 (21:48 +0200)
committerMichael Wallner <mike@php.net>
Tue, 15 Sep 2020 19:48:46 +0000 (21:48 +0200)
testing/tests/memcached/regression/lp447342.cpp

index 1ff33fe769e12b57124733f314b42775dc4ad595..5ea31ba54090d35dcc5845a7f331dcea125e3c30 100644 (file)
@@ -23,7 +23,7 @@ TEST_CASE("memcached_regression_lp447342") {
   array<size_t, NUM_KEYS> len;
   
   for (auto i = 0U; i < NUM_KEYS; ++i) {
-    str[i] = random_ascii_string(random_num(24, 32));
+    str[i] = random_ascii_string(random_num<size_t>(24, 32));
     chr[i] = str[i].data();
     len[i] = str[i].length();
     REQUIRE_SUCCESS(memcached_set(memc, chr[i], len[i], chr[i], len[i], 0, 0));