Skip to content

Commit

Permalink
240501.004958.HKT fix "conversion from size_t to int, possible loss o…
Browse files Browse the repository at this point in the history
…f data
  • Loading branch information
zaikunzhang committed Apr 30, 2024
1 parent 07fe9f3 commit 77aed25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/tests/stress.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77aed25

Please sign in to comment.