(vm *VM)
| 102 | } |
| 103 | |
| 104 | func opInt(vm *VM) { |
| 105 | a := vm.popBytes() |
| 106 | res, n := binary.Uvarint(a) |
| 107 | if n <= 0 { |
| 108 | panic(errors.WithData(ErrInt, "int", a)) |
| 109 | } |
| 110 | // Note: if res > math.MaxInt64, this will convert it to a negative |
| 111 | // number. This is intentional! |
| 112 | vm.push(Int(res)) |
| 113 | } |