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:
parent
c008d5176b
commit
8668aebf66
@ -499,7 +499,7 @@ private:
|
|||||||
RAPIDJSON_PARSE_ERROR("Expect a value here.", is.Tell());
|
RAPIDJSON_PARSE_ERROR("Expect a value here.", is.Tell());
|
||||||
|
|
||||||
// Parse 64bit int
|
// Parse 64bit int
|
||||||
uint64_t i64;
|
uint64_t i64 = 0;
|
||||||
bool useDouble = false;
|
bool useDouble = false;
|
||||||
if (try64bit) {
|
if (try64bit) {
|
||||||
i64 = i;
|
i64 = i;
|
||||||
@ -524,7 +524,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Force double for big integer
|
// Force double for big integer
|
||||||
double d;
|
double d = 0.0;
|
||||||
if (useDouble) {
|
if (useDouble) {
|
||||||
d = (double)i64;
|
d = (double)i64;
|
||||||
while (s.Peek() >= '0' && s.Peek() <= '9') {
|
while (s.Peek() >= '0' && s.Peek() <= '9') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user