aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-11 03:08:04 +0800
committerobscuren <geffobscura@gmail.com>2015-06-11 03:08:04 +0800
commitf94c5473ad7139e42e22db8e099792638b73de77 (patch)
tree4abac211d795f666c509932de43f66bbf14d429b /core/vm
parent10af69b57c8022bb400e1f00bb3c6413e640a7e1 (diff)
downloaddexon-f94c5473ad7139e42e22db8e099792638b73de77.tar
dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar.gz
dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar.bz2
dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar.lz
dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar.xz
dexon-f94c5473ad7139e42e22db8e099792638b73de77.tar.zst
dexon-f94c5473ad7139e42e22db8e099792638b73de77.zip
core/vm: fixed a bug where `Data` ignored the stack ptr
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/stack.go b/core/vm/stack.go
index b551de272..2be5c3dbe 100644
--- a/core/vm/stack.go
+++ b/core/vm/stack.go
@@ -15,7 +15,7 @@ type stack struct {
}
func (st *stack) Data() []*big.Int {
- return st.data
+ return st.data[:st.ptr]
}
func (st *stack) push(d *big.Int) {