mattwparas / steel

An embedded scheme interpreter in Rust
Apache License 2.0
1.05k stars 49 forks source link

core: Fix panic on division by integer 0 #180

Closed sirius94 closed 5 months ago

sirius94 commented 5 months ago

Division by 0isize now behaves the same as division by 0f64. Both produce +inf.0.

(= (/ 1 0) (/ 1 0.0)) ; => #true
mattwparas commented 5 months ago

Thanks!