mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-09 21:49:18 +02:00
* allow making a value of a enumeration
git-svn-id: trunk@37068 -
This commit is contained in:
parent
b1439c066a
commit
820ba03ef0
@ -582,6 +582,7 @@ begin
|
|||||||
tkProcVar : result.FData.FAsMethod.Code := PCodePointer(ABuffer)^;
|
tkProcVar : result.FData.FAsMethod.Code := PCodePointer(ABuffer)^;
|
||||||
tkMethod : result.FData.FAsMethod := PMethod(ABuffer)^;
|
tkMethod : result.FData.FAsMethod := PMethod(ABuffer)^;
|
||||||
tkPointer : result.FData.FAsPointer := PPointer(ABuffer)^;
|
tkPointer : result.FData.FAsPointer := PPointer(ABuffer)^;
|
||||||
|
tkEnumeration,
|
||||||
tkInteger : begin
|
tkInteger : begin
|
||||||
case GetTypeData(ATypeInfo)^.OrdType of
|
case GetTypeData(ATypeInfo)^.OrdType of
|
||||||
otSByte: result.FData.FAsSByte := PShortInt(ABuffer)^;
|
otSByte: result.FData.FAsSByte := PShortInt(ABuffer)^;
|
||||||
|
Loading…
Reference in New Issue
Block a user