Nicolas Cannasse 9 ani în urmă
părinte
comite
117dea84aa
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      src/jit.c

+ 2 - 1
src/jit.c

@@ -1392,7 +1392,8 @@ static preg *op_binop( jit_ctx *ctx, vreg *dst, vreg *a, vreg *b, hl_opcode *op
 				op32(ctx,MOV,REG_AT(Ecx),pb);
 				RLOCK(REG_AT(Ecx));
 				pa = fetch(a);
-			}
+			} else
+				RLOCK(b->current);
 			if( pa->kind != RCPU ) {
 				pa = alloc_reg(ctx, RCPU);
 				op32(ctx,MOV,pa,fetch(a));