Browse Source

* For some reason, any assignment of NaN cannot be compiled with overflow checking, issue #14748.

git-svn-id: trunk@13816 -
sergei 16 years ago
parent
commit
2a924d0335
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fcl-xml/src/xpath.pp

+ 2 - 2
packages/fcl-xml/src/xpath.pp

@@ -524,7 +524,7 @@ var
 begin
 begin
   Val(s, Result, Code);
   Val(s, Result, Code);
 {$push}
 {$push}
-{$r-}
+{$r-,q-}
   if Code <> 0 then
   if Code <> 0 then
     Result := NaN;
     Result := NaN;
 {$pop}
 {$pop}
@@ -762,7 +762,7 @@ begin
           NumberResult := Op1 / Op2;
           NumberResult := Op1 / Op2;
         opMod: if IsNan(Op1) or IsNan(Op2) then
         opMod: if IsNan(Op1) or IsNan(Op2) then
 {$push}
 {$push}
-{$r-}
+{$r-,q-}
           NumberResult := NaN
           NumberResult := NaN
 {$pop}
 {$pop}
         else
         else