From 762643d3208950eab15faaa8788e91765a027306 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 12 Mar 2015 20:43:21 +0000 Subject: [PATCH] Use correct %zu format string rather than cast --- src/string.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.cc b/src/string.cc index 3a6c9640..4e20a2c1 100644 --- a/src/string.cc +++ b/src/string.cc @@ -113,7 +113,7 @@ String to_string(int val) String to_string(size_t val) { char buf[16]; - sprintf(buf, "%lu", (unsigned long)val); + sprintf(buf, "%zu", val); return buf; }