Explorar el Código

* disable ret_in_param for floats, as they can be returned in a floating point register, and because enabling ret_in_param for them screws up badly the internprocs that handle floats

git-svn-id: branches/i8086@23840 -
nickysn hace 12 años
padre
commit
a66f7b61c6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compiler/i8086/cpupara.pas

+ 1 - 1
compiler/i8086/cpupara.pas

@@ -152,7 +152,7 @@ unit cpupara;
 
         { 64-bit types are returned as a parameter pointer, since putting them
           in registers would require 4 registers on the i8086 }
-        if def.size > 4 then
+        if (def.size > 4) and (def.typ <> floatdef) then
           begin
             result:=true;
             exit;