Use correct %zu format string rather than cast

This commit is contained in:
Maxime Coste 2015-03-12 20:43:21 +00:00
parent 1a7d50b347
commit 762643d320

View File

@ -113,7 +113,7 @@ String to_string(int val)
String to_string(size_t val) String to_string(size_t val)
{ {
char buf[16]; char buf[16];
sprintf(buf, "%lu", (unsigned long)val); sprintf(buf, "%zu", val);
return buf; return buf;
} }