summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-07 18:57:32 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-07 18:57:32 +0100
commitc3602e159cc69105dd1f7eb43aa257b6d73c5bf1 (patch)
treefb8dd89448a4dfb87afbc6080649d138c552cae0
parent9102af6afbc65bb7c4597e3f8371f6e72a6aebd9 (diff)
downloadmicropython-c3602e159cc69105dd1f7eb43aa257b6d73c5bf1.tar.gz
micropython-c3602e159cc69105dd1f7eb43aa257b6d73c5bf1.zip
py: Fix emitcpy, to work with latest changes to PASS variables.
-rw-r--r--py/emitcpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitcpy.c b/py/emitcpy.c
index 57b5ddd53d..77967a2a95 100644
--- a/py/emitcpy.c
+++ b/py/emitcpy.c
@@ -127,7 +127,7 @@ static void emit_pre(emit_t *emit, int stack_size_delta, int byte_code_size) {
STATIC void emit_cpy_label_assign(emit_t *emit, uint l) {
emit_pre(emit, 0, 0);
assert(l < emit->max_num_labels);
- if (emit->pass < PASS_EMIT) {
+ if (emit->pass < MP_PASS_EMIT) {
// assign label offset
assert(emit->label_offsets[l] == -1);
emit->label_offsets[l] = emit->byte_code_offset;