瀏覽代碼

* def.size in [1,2,4,8] goes wrong if def.size>255, fixed, resolves #8232

git-svn-id: trunk@6245 -
florian 18 年之前
父節點
當前提交
77b155ea79
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/x86_64/cpupara.pas

+ 1 - 1
compiler/x86_64/cpupara.pas

@@ -172,7 +172,7 @@ unit cpupara;
       begin
       begin
         if target_info.system=system_x86_64_win64 then
         if target_info.system=system_x86_64_win64 then
           result:=(calloption=pocall_safecall) or
           result:=(calloption=pocall_safecall) or
-            not(def.size in [1,2,4,8])
+            (def.size>8) or not(def.size in [1,2,4,8])
         else
         else
           result:=inherited ret_in_param(def,calloption);
           result:=inherited ret_in_param(def,calloption);
       end;
       end;