summaryrefslogtreecommitdiff
path: root/py/emitbc.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-10-10 11:24:39 +0100
committerDamien <damien.p.george@gmail.com>2013-10-10 11:24:39 +0100
commit7f5dacf34566ba6bbc49ca5a276d01cf4996cc6e (patch)
treefc4a158f1e5a15799e887715a1007d10beea5e2d /py/emitbc.c
parenta397776d6bf1a9d0b07d7138b289cd661c5e1b99 (diff)
Implement basic class/object in native code.
Diffstat (limited to 'py/emitbc.c')
-rw-r--r--py/emitbc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/emitbc.c b/py/emitbc.c
index d1ac74f0e..7fd0f8abc 100644
--- a/py/emitbc.c
+++ b/py/emitbc.c
@@ -354,8 +354,9 @@ static void emit_bc_store_subscr(emit_t *emit) {
}
static void emit_bc_store_locals(emit_t *emit) {
- // not needed for byte code
+ // not needed
emit_pre(emit, -1);
+ emit_write_byte_1(emit, PYBC_POP_TOP);
}
static void emit_bc_delete_fast(emit_t *emit, qstr qstr, int local_num) {