Fix condition of isInteger.

This commit is contained in:
hotwatermorning 2016-01-26 14:49:42 +09:00
parent 851aa78167
commit 67e93e21ae

View File

@ -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