about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/interpret/walker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interpret/walker.rs b/src/interpret/walker.rs
index 1602cd2..e301d44 100644
--- a/src/interpret/walker.rs
+++ b/src/interpret/walker.rs
@@ -123,7 +123,7 @@ impl Div for WalkValue {
             },
             Self::Int(int) => match rhs {
                 Self::Float(other_float) => Self::Float(int as f64 / other_float),
-                Self::Int(other_int) => Self::Int(int / other_int),
+                Self::Int(other_int) => Self::Float(int as f64 / other_int as f64),
             },
         }
     }