2
0
Эх сурвалжийг харах

* correctly retrieve the type of the Variant

Sven/Sarah Barth 2 жил өмнө
parent
commit
811fb28433

+ 1 - 1
packages/rtl-objpas/src/inc/rtti.pp

@@ -1987,7 +1987,7 @@ var
 
 begin
   Result:=Default(TValue);
-  aType:=TVarType(aValue);
+  aType:=TVarData(aValue).vtype;
   case aType of
     varEmpty,
     VarNull : TValue.Make(@aValue,System.TypeInfo(Variant),Result);