Commit 41d0ed07 authored by Chen Bill's avatar Chen Bill Committed by GitHub

GetVal return 0 when match failed (#2539)

parent 91865916
......@@ -133,7 +133,9 @@ public:
ret = ret * 10 + (*pstr - L'0');
pstr++;
}
return (int)ret;
if (*pstr == 0)
return (int)ret;
return 0;
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment