Browse Source

* fixed <> comparisons with NaNs (use LLVM "unordered" comparison: succeed
if either operand is a NaN)

git-svn-id: trunk@40602 -

Jonas Maebe 6 years ago
parent
commit
c55ffa8cc7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/llvm/nllvmadd.pas

+ 1 - 1
compiler/llvm/nllvmadd.pas

@@ -261,7 +261,7 @@ implementation
               equaln:
               equaln:
                 llvmfpcmp:=lfc_oeq;
                 llvmfpcmp:=lfc_oeq;
               unequaln:
               unequaln:
-                llvmfpcmp:=lfc_one;
+                llvmfpcmp:=lfc_une;
               else
               else
                 internalerror(2015031506);
                 internalerror(2015031506);
             end;
             end;