* OrdType isn't valid for Int64 and QWord

git-svn-id: trunk@1644 -
This commit is contained in:
florian 2005-11-04 21:22:00 +00:00
parent c1e968abf9
commit 9749238cfe

View File

@ -825,7 +825,7 @@ begin
DataSize := 8
else
DataSize := 4;
if PropInfo^.PropType^.Kind <> tkClass then
if not(PropInfo^.PropType^.Kind in [tkInt64,tkQword,tkClass]) then
begin
{ cut off unnecessary stuff }
case GetTypeData(PropInfo^.PropType)^.OrdType of
@ -846,7 +846,7 @@ begin
case DataSize of
1: PByte(Pointer(Instance)+Ptrint(PropInfo^.SetProc))^:=Byte(Value);
2: PWord(Pointer(Instance)+Ptrint(PropInfo^.SetProc))^:=Word(Value);
4:PLongint(Pointer(Instance)+Ptrint(PropInfo^.SetProc))^:=Longint(Value);
4: PLongint(Pointer(Instance)+Ptrint(PropInfo^.SetProc))^:=Longint(Value);
8: PInt64(Pointer(Instance)+Ptrint(PropInfo^.SetProc))^:=Value;
end;
ptstatic,