mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-03-03 12:58:03 +01:00
Provide proper implementation of isInteger for qtjson
This commit is contained in:
parent
b8b2634ad6
commit
51c916c029
@ -433,7 +433,8 @@ public:
|
||||
|
||||
bool isInteger() const
|
||||
{
|
||||
return value.isDouble();
|
||||
//toInt returns the default value (0, 1) if the value is not a whole number
|
||||
return value.isDouble() && (value.toInt(0) == value.toInt(1));
|
||||
}
|
||||
|
||||
bool isNull() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user