summaryrefslogtreecommitdiff
path: root/src/string_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-05-21 20:01:19 +1000
committerMaxime Coste <mawww@kakoune.org>2018-05-21 20:01:19 +1000
commit919b7ce64544df478c67fc83d5e4c2d4b5a4ffb0 (patch)
treedb275307b0ac3cce453ee191d2b578f9ade79ac7 /src/string_utils.cc
parentedc53de8cca3657111347483a30a52b50435bcbb (diff)
Fix also the implementation of to_string(size_t) change
Diffstat (limited to 'src/string_utils.cc')
-rw-r--r--src/string_utils.cc4
1 files 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;
}