Explorar o código

* frexp has out instead of var parameter

git-svn-id: trunk@2040 -
Jonas Maebe %!s(int64=19) %!d(string=hai) anos
pai
achega
4c3fb9ae00
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 2 2
      rtl/inc/cgenmath.inc
  2. 1 1
      rtl/inc/genmath.inc

+ 2 - 2
rtl/inc/cgenmath.inc

@@ -45,9 +45,9 @@
 
 {$ifndef SYSTEM_HAS_FREXP}
 {$define SYSTEM_HAS_FREXP}
-    function c_frexp(x: double; var e: longint): double; cdecl; external 'c' name 'frexp';
+    function c_frexp(x: double; out e: longint): double; cdecl; external 'c' name 'frexp';
 
-    function frexp(x:Real; var e:Integer ):Real; {$ifdef MATHINLINE}inline;{$endif}
+    function frexp(x:Real; out e:Integer ):Real; {$ifdef MATHINLINE}inline;{$endif}
     var
       l: longint;
     begin

+ 1 - 1
rtl/inc/genmath.inc

@@ -404,7 +404,7 @@ type
 
 
 {$ifndef SYSTEM_HAS_FREXP}
-    function frexp(x:Real; var e:Integer ):Real;
+    function frexp(x:Real; out e:Integer ):Real;
     {*  frexp() extracts the exponent from x.  It returns an integer     *}
     {*  power of two to expnt and the significand between 0.5 and 1      *}
     {*  to y.  Thus  x = y * 2**expn.                                    *}