From 77aed257626686e0bb9527e6f2ed21a3491d69d7 Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Wed, 1 May 2024 00:49:58 +0800 Subject: [PATCH] 240501.004958.HKT fix "conversion from size_t to int, possible loss of data --- c/tests/stress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/tests/stress.c b/c/tests/stress.c index 64cfa8e89c..0f6a5e05b7 100644 --- a/c/tests/stress.c +++ b/c/tests/stress.c @@ -75,7 +75,7 @@ static unsigned int get_random_seed(void) time_t t = time(NULL); struct tm timeinfo; localtime_safe(&timeinfo, &t); - int rc = strftime(buf, 10, "%y%W", &timeinfo); + size_t rc = strftime(buf, 10, "%y%W", &timeinfo); if (!rc) return 42; else