mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 09:19:23 +02:00
* fixed val_sint(x,longint) for negative hex/bin values on 64 bit
platforms git-svn-id: trunk@6205 -
This commit is contained in:
parent
6c578f55df
commit
5f61271824
@ -747,8 +747,9 @@ begin
|
|||||||
Case DestSize of
|
Case DestSize of
|
||||||
1: fpc_Val_SInt_ShortStr := shortint(fpc_Val_SInt_ShortStr);
|
1: fpc_Val_SInt_ShortStr := shortint(fpc_Val_SInt_ShortStr);
|
||||||
2: fpc_Val_SInt_ShortStr := smallint(fpc_Val_SInt_ShortStr);
|
2: fpc_Val_SInt_ShortStr := smallint(fpc_Val_SInt_ShortStr);
|
||||||
{ Uncomment the folling once full 64bit support is in place
|
{$ifdef cpu64}
|
||||||
4: fpc_Val_SInt_ShortStr := SizeInt(fpc_Val_SInt_ShortStr);}
|
4: fpc_Val_SInt_ShortStr := longint(fpc_Val_SInt_ShortStr);
|
||||||
|
{$endif cpu64}
|
||||||
End;
|
End;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user