Some renames and small fixes.

This commit is contained in:
Jae Kwon
2015-04-08 12:30:49 -07:00
parent 6b5383918f
commit 7356556938
12 changed files with 28 additions and 28 deletions

View File

@ -659,7 +659,7 @@ func (vm *VM) call(caller, callee *Account, code, input []byte, value uint64, ga
case RETURN: // 0xF3
offset, size := stack.Pop64(), stack.Pop64()
ret, ok := subslice(memory, offset, size, false)
if !ok || err != nil {
if !ok {
return nil, firstErr(err, ErrMemoryOutOfBounds)
}
dbg.Printf(" => [%v, %v] (%d) 0x%X\n", offset, size, len(ret), ret)