aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-12 21:51:05 +0800
committerobscuren <geffobscura@gmail.com>2015-03-12 21:51:05 +0800
commit26a563642431806486b595f29e22ae833abb6a8c (patch)
tree3dfe8ab6581a01317dd4e37a88aacf3551535551 /vm
parent4418e4ea6a9b8d648bcb7e7241b887cbab6936bc (diff)
parent3b3843e158d9ddbe76dcfa1e78977f0bd99a9142 (diff)
downloadgo-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar
go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar.gz
go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar.bz2
go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar.lz
go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar.xz
go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.tar.zst
go-tangerine-26a563642431806486b595f29e22ae833abb6a8c.zip
Merge branch 'develop' into rpcfrontier
Diffstat (limited to 'vm')
-rw-r--r--vm/stack.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/stack.go b/vm/stack.go
index a99cc1805..c5c2774db 100644
--- a/vm/stack.go
+++ b/vm/stack.go
@@ -15,10 +15,11 @@ type stack struct {
}
func (st *stack) push(d *big.Int) {
+ stackItem := new(big.Int).Set(d)
if len(st.data) > st.ptr {
- st.data[st.ptr] = d
+ st.data[st.ptr] = stackItem
} else {
- st.data = append(st.data, d)
+ st.data = append(st.data, stackItem)
}
st.ptr++
}