This commit is contained in:
aozhiwei 2021-04-14 12:57:40 +08:00
parent 1bcc249554
commit 2b5f0d3b41

View File

@ -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);