소스 검색

* the fpc_Catches result test code was inverted

Nikolay Nikolov 4 년 전
부모
커밋
6e6c946e0f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/wasm32/cpupi.pas

+ 1 - 1
compiler/wasm32/cpupi.pas

@@ -209,7 +209,7 @@ implementation
         hlcg.gen_load_cgpara_loc(list, fpc_catches_res.def, fpc_catches_res, exceptloc, true);
 
         { is it this catch? }
-        thlcgwasm(hlcg).a_cmp_const_reg_stack(list, fpc_catches_res.def, OC_EQ, 0, exceptloc.register);
+        thlcgwasm(hlcg).a_cmp_const_reg_stack(list, fpc_catches_res.def, OC_NE, 0, exceptloc.register);
 
         current_asmdata.CurrAsmList.concat(taicpu.op_none(a_if));
         thlcgwasm(hlcg).incblock;