mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 18:20:27 +01:00
Fix condition of isInteger.
This commit is contained in:
parent
851aa78167
commit
67e93e21ae
@ -428,7 +428,7 @@ public:
|
||||
bool isInteger() const
|
||||
{
|
||||
return value.is_number()
|
||||
&& static_cast<int>(value.number_value()) == value.number_value();
|
||||
&& value.int_value() == value.number_value();
|
||||
}
|
||||
|
||||
bool isNull() const
|
||||
|
Loading…
Reference in New Issue
Block a user