Browse Source

* fixed paraloc def when changing the size to OS_32

git-svn-id: trunk@40566 -
Jonas Maebe 6 years ago
parent
commit
6e453a1477
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/aarch64/cpupara.pas

+ 4 - 1
compiler/aarch64/cpupara.pas

@@ -556,7 +556,10 @@ unit cpupara;
                     (side=callerside) and
                     is_ordinal(paradef) and
                     (paradef.size<4) then
-                   paraloc^.size:=OS_32;
+                   begin
+                     paraloc^.size:=OS_32;
+                     paraloc^.def:=u32inttype;
+                   end;
 
                  { in case it's a composite, "The argument is passed as though
                    it had been loaded into the registers from a double-word-