aboutsummaryrefslogtreecommitdiffstats
path: root/vm/stack.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-10 18:27:10 +0800
committerobscuren <geffobscura@gmail.com>2014-12-10 18:27:10 +0800
commit186948da22feeca138ffb976fbf96033045ad350 (patch)
tree29b66414022ba03c5c87a85cf523f1fd58c9b7a8 /vm/stack.go
parent4f1ef89cb21345f3273417ec989164670e880dee (diff)
downloaddexon-186948da22feeca138ffb976fbf96033045ad350.tar
dexon-186948da22feeca138ffb976fbf96033045ad350.tar.gz
dexon-186948da22feeca138ffb976fbf96033045ad350.tar.bz2
dexon-186948da22feeca138ffb976fbf96033045ad350.tar.lz
dexon-186948da22feeca138ffb976fbf96033045ad350.tar.xz
dexon-186948da22feeca138ffb976fbf96033045ad350.tar.zst
dexon-186948da22feeca138ffb976fbf96033045ad350.zip
changed to unsigned integers
Diffstat (limited to 'vm/stack.go')
-rw-r--r--vm/stack.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/stack.go b/vm/stack.go
index 98795cc03..6091479cb 100644
--- a/vm/stack.go
+++ b/vm/stack.go
@@ -111,10 +111,10 @@ func NewMemory() *Memory {
return &Memory{nil}
}
-func (m *Memory) Set(offset, size int64, value []byte) {
+func (m *Memory) Set(offset, size uint64, value []byte) {
if len(value) > 0 {
totSize := offset + size
- lenSize := int64(len(m.store) - 1)
+ lenSize := uint64(len(m.store) - 1)
if totSize > lenSize {
// Calculate the diff between the sizes
diff := totSize - lenSize