瀏覽代碼

* correctly retrieve the type of the Variant

Sven/Sarah Barth 2 年之前
父節點
當前提交
811fb28433
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/rtl-objpas/src/inc/rtti.pp

+ 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);