Commit 958b482a authored by obscuren's avatar obscuren

div 0 err

parent 5d57b784
......@@ -268,7 +268,9 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
x, y := stack.Popn()
self.Printf(" %v / %v", y, x)
base.Div(y, x)
if x.Cmp(ethutil.Big0) != 0 {
base.Div(y, x)
}
self.Printf(" = %v", base)
// Pop result back on the stack
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment