aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-03 02:39:45 +0800
committerobscuren <geffobscura@gmail.com>2014-11-03 02:39:45 +0800
commit1bb398f4e22feef8f83fedd8a525e4da5b627773 (patch)
treee0f9df8d42210ae947edb1766c446415df047776 /vm
parent3f90f7c89856f5d024eec1df535a4fc2871214c2 (diff)
downloaddexon-1bb398f4e22feef8f83fedd8a525e4da5b627773.tar
dexon-1bb398f4e22feef8f83fedd8a525e4da5b627773.tar.gz
dexon-1bb398f4e22feef8f83fedd8a525e4da5b627773.tar.bz2
dexon-1bb398f4e22feef8f83fedd8a525e4da5b627773.tar.lz
dexon-1bb398f4e22feef8f83fedd8a525e4da5b627773.tar.xz
dexon-1bb398f4e22feef8f83fedd8a525e4da5b627773.tar.zst
dexon-1bb398f4e22feef8f83fedd8a525e4da5b627773.zip
Sign ext
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_debug.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_debug.go b/vm/vm_debug.go
index 129ea1a59..05ae347f6 100644
--- a/vm/vm_debug.go
+++ b/vm/vm_debug.go
@@ -394,7 +394,7 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) {
stack.Push(base)
case SIGNEXTEND:
back := stack.Pop().Uint64()
- if back.Cmp(big.NewInt(31)) < 0 {
+ if back < 31 {
bit := uint(back*8 + 7)
num := stack.Pop()
mask := new(big.Int).Lsh(ethutil.Big1, bit)