瀏覽代碼

* better implementation of TProcedureParam.GetFlags that correctly handles a TParamFlags with a size > 1 even on big endian

git-svn-id: trunk@35262 -
svenbarth 8 年之前
父節點
當前提交
bd8a7be17e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/objpas/typinfo.pp

+ 1 - 1
rtl/objpas/typinfo.pp

@@ -2408,7 +2408,7 @@ end;
 
 function TProcedureParam.GetFlags: Byte;
 begin
-  Result := Byte(ParamFlags);
+  Result := PByte(@ParamFlags)^;
 end;
 
 { TManagedField }