mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-02 07:49:32 +01:00
* defutil.is_smallset updated for 8/16-bit CPUs
git-svn-id: branches/i8086@23894 -
This commit is contained in:
parent
cbf3b14e20
commit
a68dfed450
@ -1127,7 +1127,13 @@ implementation
|
||||
{# returns true, if the type passed is a varset }
|
||||
function is_smallset(p : tdef) : boolean;
|
||||
begin
|
||||
result:=(p.typ=setdef) and (p.size in [1,2,4])
|
||||
{$if defined(cpu8bitalu)}
|
||||
result:=(p.typ=setdef) and (p.size = 1)
|
||||
{$elseif defined(cpu16bitalu)}
|
||||
result:=(p.typ=setdef) and (p.size in [1,2])
|
||||
{$else}
|
||||
result:=(p.typ=setdef) and (p.size in [1,2,4])
|
||||
{$endif}
|
||||
end;
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user