div 0 err

This commit is contained in:
obscuren 2014-07-23 12:36:47 +02:00
parent 5d57b78471
commit 958b482ada

@ -268,7 +268,9 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
x, y := stack.Popn()
self.Printf(" %v / %v", y, x)
if x.Cmp(ethutil.Big0) != 0 {
base.Div(y, x)
}
self.Printf(" = %v", base)
// Pop result back on the stack