From 919b7ce64544df478c67fc83d5e4c2d4b5a4ffb0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 21 May 2018 20:01:19 +1000 Subject: [PATCH] Fix also the implementation of to_string(size_t) change --- src/string_utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/string_utils.cc b/src/string_utils.cc index a0f74dc6..497b53fd 100644 --- a/src/string_utils.cc +++ b/src/string_utils.cc @@ -146,10 +146,10 @@ InplaceString<23> to_string(long long int val) return res; } -InplaceString<23> to_string(size_t val) +InplaceString<23> to_string(unsigned long val) { InplaceString<23> res; - res.m_length = sprintf(res.m_data, "%zu", val); + res.m_length = sprintf(res.m_data, "%lu", val); return res; }