summaryrefslogtreecommitdiff
path: root/src/raw_convert.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-15 10:09:45 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-15 14:08:03 +0100
commit3c93561190ceb883db6b69c1cd37d99cd547fe83 (patch)
tree01524b1ce784fb78424e32dfb7db110d6a4f9686 /src/raw_convert.cc
parent846bb291aa34af6e2c533d2d1402e86361552433 (diff)
Rationalise raw/locale_convert stuff and fix build on OS X.
Diffstat (limited to 'src/raw_convert.cc')
-rw-r--r--src/raw_convert.cc18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/raw_convert.cc b/src/raw_convert.cc
index 5f8c1e41..b7685ab8 100644
--- a/src/raw_convert.cc
+++ b/src/raw_convert.cc
@@ -73,14 +73,28 @@ dcp::raw_convert (unsigned int v, int precision, bool fixed)
template <>
string
-dcp::raw_convert (int64_t v, int precision, bool fixed)
+dcp::raw_convert (long int v, int precision, bool fixed)
{
return make_raw (locale_convert<string> (v, precision, fixed));
}
template <>
string
-dcp::raw_convert (uint64_t v, int precision, bool fixed)
+dcp::raw_convert (unsigned long int v, int precision, bool fixed)
+{
+ return make_raw (locale_convert<string> (v, precision, fixed));
+}
+
+template <>
+string
+dcp::raw_convert (long long int v, int precision, bool fixed)
+{
+ return make_raw (locale_convert<string> (v, precision, fixed));
+}
+
+template <>
+string
+dcp::raw_convert (unsigned long long v, int precision, bool fixed)
{
return make_raw (locale_convert<string> (v, precision, fixed));
}