Browse files

Merge pull request #3 from gustavosbarreto/master

JSON number as a double QVariant
  • Loading branch information...
2 parents 13dabee + 74c99ed commit 3174e444401198748844bdcb4815fbf24306da86 Eeli Reilin committed Aug 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 json.cpp
View
2 json.cpp
@@ -430,7 +430,7 @@ QVariant Json::parseNumber(const QString &json, int &index)
index = lastIndex + 1;
- return QVariant(numberStr);
+ return QVariant(numberStr.toDouble(NULL));
}
/**

0 comments on commit 3174e44

Please sign in to comment.