Przeglądaj źródła

* fix push_high_param for cdecl

peter 22 lat temu
rodzic
commit
cf1f53f910
1 zmienionych plików z 10 dodań i 5 usunięć
  1. 10 5
      compiler/paramgr.pas

+ 10 - 5
compiler/paramgr.pas

@@ -150,10 +150,12 @@ unit paramgr;
 
 
     function tparamanager.push_high_param(def : tdef;calloption : tproccalloption) : boolean;
     function tparamanager.push_high_param(def : tdef;calloption : tproccalloption) : boolean;
       begin
       begin
-         push_high_param:=is_open_array(def) or
-                          is_open_string(def) or
-                          (is_array_of_const(def) and
-                           not(calloption in [pocall_cdecl,pocall_cppdecl]));
+         push_high_param:=not(calloption in [pocall_cdecl,pocall_cppdecl]) and
+                          (
+                           is_open_array(def) or
+                           is_open_string(def) or
+                           is_array_of_const(def)
+                          );
       end;
       end;
 
 
 
 
@@ -410,7 +412,10 @@ end.
 
 
 {
 {
    $Log$
    $Log$
-   Revision 1.33  2003-04-23 10:14:30  peter
+   Revision 1.34  2003-04-23 13:15:04  peter
+     * fix push_high_param for cdecl
+
+   Revision 1.33  2003/04/23 10:14:30  peter
      * cdecl array of const has no addr push
      * cdecl array of const has no addr push
 
 
    Revision 1.32  2003/04/22 13:47:08  peter
    Revision 1.32  2003/04/22 13:47:08  peter