core/vm: fixed a bug where `Data` ignored the stack ptr

This commit is contained in:
obscuren 2015-06-10 21:08:04 +02:00
parent 10af69b57c
commit f94c5473ad
1 changed files with 1 additions and 1 deletions

View File

@ -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) {