OSDN Git Service

fix mov should pay amount (#453)
[bytom/vapor.git] / protocol / vm / numeric.go
index f74290f..e95a3dd 100644 (file)
@@ -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
        }