X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flocale_convert.cc;h=89c797599a4374eb60286f8d0a630ce6f9e88d48;hb=refs%2Fheads%2F1.0-templates;hp=fc156244929d2c29f7e39f42b671b98aae221a14;hpb=5f61c01c7759e1420adbf201a8ccf01beac1536d;p=libdcp.git diff --git a/src/locale_convert.cc b/src/locale_convert.cc index fc156244..89c79759 100644 --- a/src/locale_convert.cc +++ b/src/locale_convert.cc @@ -185,11 +185,20 @@ dcp::locale_convert (string x, int, bool) } template<> -int64_t +long 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; +} + +template<> +long long +dcp::locale_convert (string x, int, bool) +{ + long long y = 0; + sscanf (x.c_str(), "%lld", &y); return y; }