aboutsummaryrefslogtreecommitdiffstats
path: root/vm/stack.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2014-12-22 01:42:32 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2014-12-22 01:42:32 +0800
commit1360f027d9e365242466ca346b2b56f421729d91 (patch)
treea30ff7292e87583781b682b47d851d0f6e1925fc /vm/stack.go
parentb3629c6f62bd3774eb8858819a8ee07dfb775b73 (diff)
parent795b14330ad4399ef292835eac452d258dcd7464 (diff)
downloadgo-tangerine-1360f027d9e365242466ca346b2b56f421729d91.tar
go-tangerine-1360f027d9e365242466ca346b2b56f421729d91.tar.gz
go-tangerine-1360f027d9e365242466ca346b2b56f421729d91.tar.bz2
go-tangerine-1360f027d9e365242466ca346b2b56f421729d91.tar.lz
go-tangerine-1360f027d9e365242466ca346b2b56f421729d91.tar.xz
go-tangerine-1360f027d9e365242466ca346b2b56f421729d91.tar.zst
go-tangerine-1360f027d9e365242466ca346b2b56f421729d91.zip
Merge pull request #216 from ethereum/develop
Update tests branch from develop
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