* allow making a value of a enumeration

git-svn-id: trunk@37068 -
This commit is contained in:
svenbarth 2017-08-27 12:41:14 +00:00
parent b1439c066a
commit 820ba03ef0

View File

@ -582,6 +582,7 @@ begin
tkProcVar : result.FData.FAsMethod.Code := PCodePointer(ABuffer)^;
tkMethod : result.FData.FAsMethod := PMethod(ABuffer)^;
tkPointer : result.FData.FAsPointer := PPointer(ABuffer)^;
tkEnumeration,
tkInteger : begin
case GetTypeData(ATypeInfo)^.OrdType of
otSByte: result.FData.FAsSByte := PShortInt(ABuffer)^;