Index: src/string.cpp =================================================================== --- src/string.cpp +++ src/string.cpp @@ -90,7 +90,7 @@ as_integer(const string& func, const string& s, size_t* idx, int base ) { // Use long as no Standard string to integer exists. - long r = as_integer_helper( func, s, idx, base, strtol ); + long long r = as_integer_helper( func, s, idx, base, strtol ); if (r < numeric_limits::min() || numeric_limits::max() < r) throw_from_string_out_of_range(func); return static_cast(r); @@ -135,7 +135,7 @@ as_integer( const string& func, const wstring& s, size_t* idx, int base ) { // Use long as no Stantard string to integer exists. - long r = as_integer_helper( func, s, idx, base, wcstol ); + long long r = as_integer_helper( func, s, idx, base, wcstol ); if (r < numeric_limits::min() || numeric_limits::max() < r) throw_from_string_out_of_range(func); return static_cast(r);