mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-23 11:39:55 +02:00
Use correct defines for ALUSInt, fixes problems encountered in webassembly
This commit is contained in:
parent
a2a513958f
commit
ec7e917b1a
@ -500,19 +500,19 @@ Type
|
|||||||
TExitCode = Word;
|
TExitCode = Word;
|
||||||
{$endif CPU16}
|
{$endif CPU16}
|
||||||
|
|
||||||
{$if defined(CPUINT8)}
|
{$if defined(CPU8)}
|
||||||
ALUSInt = ShortInt;
|
ALUSInt = ShortInt;
|
||||||
ALUUInt = Byte;
|
ALUUInt = Byte;
|
||||||
{$elseif defined(CPUINT16)}
|
{$elseif defined(CPU16)}
|
||||||
ALUSInt = SmallInt;
|
ALUSInt = SmallInt;
|
||||||
ALUUInt = Word;
|
ALUUInt = Word;
|
||||||
{$elseif defined(CPUINT32)}
|
{$elseif defined(CPU32)}
|
||||||
ALUSInt = Longint;
|
ALUSInt = Longint;
|
||||||
ALUUInt = DWord;
|
ALUUInt = DWord;
|
||||||
{$elseif defined(CPUINT64)}
|
{$elseif defined(CPU64)}
|
||||||
ALUSInt = Int64;
|
ALUSInt = Int64;
|
||||||
ALUUInt = QWord;
|
ALUUInt = QWord;
|
||||||
{$endif defined(CPUINT64)}
|
{$endif defined(CPU64)}
|
||||||
|
|
||||||
{ NativeInt and NativeUInt are Delphi compatibility types. Even though Delphi
|
{ NativeInt and NativeUInt are Delphi compatibility types. Even though Delphi
|
||||||
has IntPtr and UIntPtr, the Delphi documentation for NativeInt states that
|
has IntPtr and UIntPtr, the Delphi documentation for NativeInt states that
|
||||||
|
Loading…
Reference in New Issue
Block a user