Use correct %zu format string rather than cast
This commit is contained in:
parent
1a7d50b347
commit
762643d320
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user