py: Fix emitcpy, to work with latest changes to PASS variables.

This commit is contained in:
Damien George 2014-05-07 18:57:32 +01:00
parent 9102af6afb
commit c3602e159c
1 changed files with 1 additions and 1 deletions

View File

@ -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) { STATIC void emit_cpy_label_assign(emit_t *emit, uint l) {
emit_pre(emit, 0, 0); emit_pre(emit, 0, 0);
assert(l < emit->max_num_labels); assert(l < emit->max_num_labels);
if (emit->pass < PASS_EMIT) { if (emit->pass < MP_PASS_EMIT) {
// assign label offset // assign label offset
assert(emit->label_offsets[l] == -1); assert(emit->label_offsets[l] == -1);
emit->label_offsets[l] = emit->byte_code_offset; emit->label_offsets[l] = emit->byte_code_offset;