浏览代码

* proper fix for problem I tried to solve in r3655

git-svn-id: trunk@3661 -
Jonas Maebe 19 年之前
父节点
当前提交
93fba718b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/i386/cpupara.pas

+ 1 - 1
compiler/i386/cpupara.pas

@@ -381,7 +381,6 @@ unit cpupara;
         paracgsize : tcgsize;
         paracgsize : tcgsize;
       begin
       begin
         paraalign:=get_para_align(p.proccalloption);
         paraalign:=get_para_align(p.proccalloption);
-        parasize := 0;
         { we push Flags and CS as long
         { we push Flags and CS as long
           to cope with the IRETD
           to cope with the IRETD
           and we save 6 register + 4 selectors }
           and we save 6 register + 4 selectors }
@@ -412,6 +411,7 @@ unit cpupara;
                 { zero extended to sizeof(aint)                                }
                 { zero extended to sizeof(aint)                                }
                 if (target_info.system = system_i386_darwin) and
                 if (target_info.system = system_i386_darwin) and
                    (side = callerside) and
                    (side = callerside) and
+                   (paralen > 0) and
                    (paralen < sizeof(aint)) then
                    (paralen < sizeof(aint)) then
                   begin
                   begin
                     paralen := sizeof(aint);
                     paralen := sizeof(aint);