1 parent f0405b7 commit c3b35c2Copy full SHA for c3b35c2
1 file changed
src/charly/value.cpp
@@ -672,7 +672,7 @@ RawValue RawValue::op_mod(RawValue other) const {
672
return RawInt::create(RawInt::cast(*this).value() % RawInt::cast(other).value());
673
}
674
675
- if (isFloat() && other.isNumber()) {
+ if (isNumber() && other.isNumber()) {
676
auto left = double_value();
677
auto right = other.double_value();
678
return RawFloat::create(std::fmod(left, right));
0 commit comments