diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-10-31 10:19:06 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-10-31 10:19:06 +0000 |
| commit | 650a989c1e2e6c38bc349678b5b88037d6376ffe (patch) | |
| tree | a899b94149bc9c9eea7e85023ca964cea474dba7 /src/string.cc | |
| parent | bd5c952d7630a552dcd7c0d3788f9a193c662238 (diff) | |
Add to_string(long long int) overload to fix OSX compilation
Diffstat (limited to 'src/string.cc')
| -rw-r--r-- | src/string.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/string.cc b/src/string.cc index 7cc24e2c..dbece8e7 100644 --- a/src/string.cc +++ b/src/string.cc @@ -319,6 +319,13 @@ InplaceString<23> to_string(long int val) return res; } +InplaceString<23> to_string(long long int val) +{ + InplaceString<23> res; + res.m_length = sprintf(res.m_data, "%lli", val); + return res; +} + InplaceString<23> to_string(size_t val) { InplaceString<23> res; |
