The division test was wrong
This commit is contained in:
@@ -117,7 +117,7 @@ func (machine *Machine) Execute(offset int) (err error) {
|
||||
// last word on the stack
|
||||
left := machine.Pop()
|
||||
right := machine.Pop()
|
||||
if left == 0 && right == 0 {
|
||||
if right == 0 {
|
||||
err = ErrorDivideByZero
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user