mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-07 15:38:37 +00:00
div 0 err
This commit is contained in:
parent
5d57b78471
commit
958b482ada
1 changed files with 3 additions and 1 deletions
|
|
@ -268,7 +268,9 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
|
||||||
x, y := stack.Popn()
|
x, y := stack.Popn()
|
||||||
self.Printf(" %v / %v", y, x)
|
self.Printf(" %v / %v", y, x)
|
||||||
|
|
||||||
base.Div(y, x)
|
if x.Cmp(ethutil.Big0) != 0 {
|
||||||
|
base.Div(y, x)
|
||||||
|
}
|
||||||
|
|
||||||
self.Printf(" = %v", base)
|
self.Printf(" = %v", base)
|
||||||
// Pop result back on the stack
|
// Pop result back on the stack
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue