diff options
Diffstat (limited to 'src/locale_convert.cc')
| -rw-r--r-- | src/locale_convert.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/locale_convert.cc b/src/locale_convert.cc index 129ee50f..89c79759 100644 --- a/src/locale_convert.cc +++ b/src/locale_convert.cc @@ -185,7 +185,7 @@ dcp::locale_convert (string x, int, bool) } template<> -long int +long dcp::locale_convert (string x, int, bool) { long int y = 0; @@ -194,6 +194,15 @@ dcp::locale_convert (string x, int, bool) } template<> +long long +dcp::locale_convert (string x, int, bool) +{ + long long y = 0; + sscanf (x.c_str(), "%lld", &y); + return y; +} + +template<> float dcp::locale_convert (string x, int, bool) { |
