diff --git a/a8/xvalue.cc b/a8/xvalue.cc index 7a376d9..daab55b 100644 --- a/a8/xvalue.cc +++ b/a8/xvalue.cc @@ -267,10 +267,10 @@ namespace a8 return (long long)value_.float_value; break; case XVT_STRING: - return value_.str_value ? strtoll(value_.str_value, NULL, 10) : 0; + return value_.str_value ? strtoll(value_.str_value, NULL, 0) : 0; break; case XVT_WSTRING: - return strtoll(GetString().c_str(), NULL, 10); + return strtoll(GetString().c_str(), NULL, 0); break; default: return value_.int_value; @@ -313,8 +313,8 @@ namespace a8 return value_.float_value; break; case XVT_STRING: - { - double dwV = 0; + { + double dwV = 0; if (value_.str_value){ if (strstr(value_.str_value, "-")){ sscanf(value_.str_value, "%lf", &dwV);