Change-Id: I96fb3e8c47a336ef4e0e3cab44e6dfd4d5aff70a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
return true;
if (isString() && other.isString())
return stringValue()->isEqualTo(other.stringValue());
- if (isInteger() && int_32 == 0 && other.dbl == 0)
- return true;
- if (dbl == 0 && other.isInteger() && other.int_32 == 0)
- return true;
+ if (isInteger())
+ return int_32 ? (double(int_32) == other.dbl) : (other.val == 0);
+ if (other.isInteger())
+ return other.int_32 ? (dbl == double(other.int_32)) : (val == 0);
return false;
}