Fixed issue 17 from 0.1x branch

git-svn-id: https://rapidjson.googlecode.com/svn/trunk@59 c5894555-1306-4e8d-425f-1f6f381ee07c
This commit is contained in:
miloyip@gmail.com 2012-02-28 06:07:32 +00:00
parent c008d5176b
commit 8668aebf66

View File

@ -499,7 +499,7 @@ private:
RAPIDJSON_PARSE_ERROR("Expect a value here.", is.Tell());
// Parse 64bit int
uint64_t i64;
uint64_t i64 = 0;
bool useDouble = false;
if (try64bit) {
i64 = i;
@ -524,7 +524,7 @@ private:
}
// Force double for big integer
double d;
double d = 0.0;
if (useDouble) {
d = (double)i64;
while (s.Peek() >= '0' && s.Peek() <= '9') {