소스 검색

fixed invalid null field access name

Nicolas Cannasse 3 년 전
부모
커밋
981fb673ac
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/jit.c

+ 1 - 1
src/jit.c

@@ -3873,7 +3873,7 @@ int hl_jit_function( jit_ctx *ctx, hl_module *m, hl_function *f ) {
 					if( f == NULL ) ASSERT(dst->t->kind);
  					null_field_access = true;
 					pad_before_call(ctx, HL_WSIZE);
-					if( f->hashed_name < 256 )
+					if( f->hashed_name >= 0 && f->hashed_name < 256 )
 						op64(ctx,PUSH8,pconst(&p,f->hashed_name),UNUSED);
 					else
 						op32(ctx,PUSH,pconst(&p,f->hashed_name),UNUSED);