Skip to content

Commit

Permalink
Tweaked local loading in methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Dec 21, 2016
1 parent 23ff422 commit 61dcb6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions voc/python/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ def add_self(self):
def store_name(self, name):
if name in self.local_vars:
self.add_opcodes(
JavaOpcodes.DUP(),
ASTORE_name(self, name),
ALOAD_name(self, '#locals'),
JavaOpcodes.SWAP(),
JavaOpcodes.LDC_W(name),
ALOAD_name(self, name),
JavaOpcodes.INVOKEINTERFACE(
'java/util/Map',
'put',
Expand Down

0 comments on commit 61dcb6a

Please sign in to comment.