Explorar el Código

* fixed tests/test/cg/tformfnc.pp

git-svn-id: trunk@2844 -
Jonas Maebe hace 19 años
padre
commit
7c9cfe5e06
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compiler/ncgcal.pas

+ 1 - 1
compiler/ncgcal.pas

@@ -406,7 +406,7 @@ implementation
                begin
                   { allow passing of a constant to a const formaldef }
                   if (parasym.varspez=vs_const) and
-                     (left.location.loc=LOC_CONSTANT) then
+                     (left.location.loc in [LOC_CONSTANT,LOC_REGISTER]) then
                     location_force_mem(exprasmlist,left.location);
                   push_addr_para;
                end