aboutsummaryrefslogtreecommitdiffstats
path: root/core
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
parent10af69b57c8022bb400e1f00bb3c6413e640a7e1 (diff)
downloadgo-tangerine-f94c5473ad7139e42e22db8e099792638b73de77.tar
go-tangerine-f94c5473ad7139e42e22db8e099792638b73de77.tar.gz
go-tangerine-f94c5473ad7139e42e22db8e099792638b73de77.tar.bz2
go-tangerine-f94c5473ad7139e42e22db8e099792638b73de77.tar.lz
go-tangerine-f94c5473ad7139e42e22db8e099792638b73de77.tar.xz
go-tangerine-f94c5473ad7139e42e22db8e099792638b73de77.tar.zst
go-tangerine-f94c5473ad7139e42e22db8e099792638b73de77.zip
core/vm: fixed a bug where `Data` ignored the stack ptr
Diffstat (limited to 'core')
-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) {