diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-13 02:41:56 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-13 02:41:56 +0800 |
commit | 347cb272bea3f5abddc6ee2f63917f3b8f655d43 (patch) | |
tree | 16e0b17bd57469589445827c9bda6161ef99be76 /vm | |
parent | d1c872bace8f3e87f34bc97167892c09ab4de193 (diff) | |
download | dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar.gz dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar.bz2 dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar.lz dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar.xz dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.tar.zst dexon-347cb272bea3f5abddc6ee2f63917f3b8f655d43.zip |
fixed ethtest
Diffstat (limited to 'vm')
-rw-r--r-- | vm/vm.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -235,9 +235,9 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I stack.push(base) case SIGNEXTEND: - back := stack.pop().Uint64() - if back < 31 { - bit := uint(back*8 + 7) + back := stack.pop() + if back.Cmp(big.NewInt(31)) < 0 { + bit := uint(back.Uint64()*8 + 7) num := stack.pop() mask := new(big.Int).Lsh(ethutil.Big1, bit) mask.Sub(mask, ethutil.Big1) |