OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix mov should pay amount (#453)
[bytom/vapor.git]
/
protocol
/
vm
/
numeric.go
diff --git
a/protocol/vm/numeric.go
b/protocol/vm/numeric.go
index
f74290f
..
e95a3dd
100644
(file)
--- a/
protocol/vm/numeric.go
+++ b/
protocol/vm/numeric.go
@@
-484,7
+484,7
@@
func opMulFraction(vm *virtualMachine) error {
}
res := big.NewInt(x)
- res.Mul(res, big.NewInt(y)).
Div
(res, big.NewInt(z))
+ res.Mul(res, big.NewInt(y)).
Quo
(res, big.NewInt(z))
if !res.IsInt64() {
return ErrRange
}