diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/locale_convert.cc | 6 | ||||
| -rw-r--r-- | src/locale_convert.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/locale_convert.cc b/src/locale_convert.cc index fc156244..129ee50f 100644 --- a/src/locale_convert.cc +++ b/src/locale_convert.cc @@ -185,11 +185,11 @@ dcp::locale_convert (string x, int, bool) } template<> -int64_t +long int dcp::locale_convert (string x, int, bool) { - int64_t y = 0; - sscanf (x.c_str(), "%" PRId64, &y); + long int y = 0; + sscanf (x.c_str(), "%ld", &y); return y; } diff --git a/src/locale_convert.h b/src/locale_convert.h index 760e1068..05728409 100644 --- a/src/locale_convert.h +++ b/src/locale_convert.h @@ -112,7 +112,7 @@ int locale_convert (std::string x, int, bool); template <> -int64_t +long int locale_convert (std::string x, int, bool); template <> |
