mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 07:26:24 +02:00
* OrdType isn't valid for Int64 and QWord
git-svn-id: trunk@1644 -
This commit is contained in:
parent
c1e968abf9
commit
9749238cfe
@ -825,7 +825,7 @@ begin
|
|||||||
DataSize := 8
|
DataSize := 8
|
||||||
else
|
else
|
||||||
DataSize := 4;
|
DataSize := 4;
|
||||||
if PropInfo^.PropType^.Kind <> tkClass then
|
if not(PropInfo^.PropType^.Kind in [tkInt64,tkQword,tkClass]) then
|
||||||
begin
|
begin
|
||||||
{ cut off unnecessary stuff }
|
{ cut off unnecessary stuff }
|
||||||
case GetTypeData(PropInfo^.PropType)^.OrdType of
|
case GetTypeData(PropInfo^.PropType)^.OrdType of
|
||||||
@ -846,7 +846,7 @@ begin
|
|||||||
case DataSize of
|
case DataSize of
|
||||||
1: PByte(Pointer(Instance)+Ptrint(PropInfo^.SetProc))^:=Byte(Value);
|
1: PByte(Pointer(Instance)+Ptrint(PropInfo^.SetProc))^:=Byte(Value);
|
||||||
2: PWord(Pointer(Instance)+Ptrint(PropInfo^.SetProc))^:=Word(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;
|
8: PInt64(Pointer(Instance)+Ptrint(PropInfo^.SetProc))^:=Value;
|
||||||
end;
|
end;
|
||||||
ptstatic,
|
ptstatic,
|
||||||
|
Loading…
Reference in New Issue
Block a user