Browse Source

* replaced a trunc() with an int() call (because its result is compared
with a float as well)

git-svn-id: trunk@10375 -

Jonas Maebe 17 years ago
parent
commit
7433e0ef89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/inc/real2str.inc

+ 1 - 1
rtl/inc/real2str.inc

@@ -173,7 +173,7 @@ const
         { the fractional part is not used for rounding later                }
         currprec := -1;
         { instead, round based on the next whole digit }
-        if (trunc(intPartStack[stackPtr]-corrVal) > 5.0 - roundCorr) then
+        if (int(intPartStack[stackPtr]-corrVal) > 5.0 - roundCorr) then
            roundStr(temp,spos);
         end;
 {$ifdef DEBUG_NASM}