mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 04:09:33 +02:00
* use ValSInt parameter as code parameter in val calls to make the code cross platform
git-svn-id: trunk@22148 -
This commit is contained in:
parent
04034b6771
commit
088a7229aa
@ -1496,7 +1496,7 @@ end;
|
||||
Procedure fpc_Read_Text_SInt(var f : Text; out l : ValSInt); iocheck; compilerproc;
|
||||
var
|
||||
hs : String;
|
||||
code : longint;
|
||||
code : ValSInt;
|
||||
Begin
|
||||
l:=0;
|
||||
If not CheckRead(f) then
|
||||
@ -1526,7 +1526,7 @@ End;
|
||||
Procedure fpc_Read_Text_UInt(var f : Text; out u : ValUInt); iocheck; compilerproc;
|
||||
var
|
||||
hs : String;
|
||||
code : longint;
|
||||
code : ValSInt;
|
||||
Begin
|
||||
u:=0;
|
||||
If not CheckRead(f) then
|
||||
@ -1599,7 +1599,7 @@ end;
|
||||
procedure fpc_Read_Text_Currency(var f : Text; out v : Currency); iocheck; compilerproc;
|
||||
var
|
||||
hs : string;
|
||||
code : Word;
|
||||
code : ValSInt;
|
||||
begin
|
||||
{$ifdef FPUNONE}
|
||||
v:=0;
|
||||
|
Loading…
Reference in New Issue
Block a user