mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 22:47:54 +02:00
* changed first parameter of gen_digits_32/64() from 'out' to 'var', as that
routine gets called multiple times with the same buffer as parameter and then updates it (fixes errors when compiled with -gt) git-svn-id: trunk@33203 -
This commit is contained in:
parent
741c91275a
commit
60632d0f18
@ -755,7 +755,7 @@ type
|
||||
| to the sequence of byte-sized decimal digits.
|
||||
|
|
||||
*-------------------------------------------------------*)
|
||||
function gen_digits_32( out buf: TAsciiDigits; pos: integer; x: dword; pad_9zero: boolean = false ): integer;
|
||||
function gen_digits_32( var buf: TAsciiDigits; pos: integer; x: dword; pad_9zero: boolean = false ): integer;
|
||||
const
|
||||
digits: array [ 0 .. 9 ] of dword = (
|
||||
0,
|
||||
@ -803,7 +803,7 @@ begin
|
||||
end;
|
||||
|
||||
{$ifndef VALREAL_32}
|
||||
function gen_digits_64( out buf: TAsciiDigits; pos: integer; const x: qword; pad_19zero: boolean = false ): integer;
|
||||
function gen_digits_64( var buf: TAsciiDigits; pos: integer; const x: qword; pad_19zero: boolean = false ): integer;
|
||||
var
|
||||
n_digits: integer;
|
||||
temp: qword;
|
||||
|
Loading…
Reference in New Issue
Block a user