Browse Source

* use voidpointer.size instead of sizeof(pint) in tparamanager.push_size in
order to properly support i8086 far data memory models

git-svn-id: trunk@26933 -

nickysn 11 years ago
parent
commit
9321d9916d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/paramgr.pas

+ 2 - 2
compiler/paramgr.pas

@@ -223,12 +223,12 @@ implementation
           vs_constref,
           vs_out,
           vs_var :
-            push_size:=sizeof(pint);
+            push_size:=voidpointertype.size;
           vs_value,
           vs_const :
             begin
                 if push_addr_param(varspez,def,calloption) then
-                  push_size:=sizeof(pint)
+                  push_size:=voidpointertype.size
                 else
                   begin
                     { special array are normally pushed by addr, only for