Skip to content

Commit c3b35c2

Browse files
committed
Minor fix to mod opcode handling
1 parent f0405b7 commit c3b35c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/charly/value.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ RawValue RawValue::op_mod(RawValue other) const {
672672
return RawInt::create(RawInt::cast(*this).value() % RawInt::cast(other).value());
673673
}
674674

675-
if (isFloat() && other.isNumber()) {
675+
if (isNumber() && other.isNumber()) {
676676
auto left = double_value();
677677
auto right = other.double_value();
678678
return RawFloat::create(std::fmod(left, right));

0 commit comments

Comments
 (0)