Browse Source

* revert r19643: FloatToStr has to handle Nan correctly and should not cause
any exceptions (silent or not), FloatToStr has been fixed in r19783

git-svn-id: trunk@22877 -

florian 12 years ago
parent
commit
6345aee80b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/x86/nx86add.pas

+ 1 - 1
compiler/x86/nx86add.pas

@@ -968,7 +968,7 @@ unit nx86add;
 
 
             { load fpu flags }
             { load fpu flags }
             cg.getcpuregister(current_asmdata.CurrAsmList,NR_AX);
             cg.getcpuregister(current_asmdata.CurrAsmList,NR_AX);
-            emit_reg(A_FSTSW,S_NO,NR_AX);
+            emit_reg(A_FNSTSW,S_NO,NR_AX);
             emit_none(A_SAHF,S_NO);
             emit_none(A_SAHF,S_NO);
             cg.ungetcpuregister(current_asmdata.CurrAsmList,NR_AX);
             cg.ungetcpuregister(current_asmdata.CurrAsmList,NR_AX);
             if nf_swapped in flags then
             if nf_swapped in flags then