Przeglądaj źródła

* 16/8-bit alu fix in thlcg2ll.location_force_reg for the 32->64 conversion of LOC_CONSTANT sources

git-svn-id: trunk@27654 -
nickysn 11 lat temu
rodzic
commit
3e308e0ad7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      compiler/hlcg2ll.pas

+ 1 - 1
compiler/hlcg2ll.pas

@@ -1071,7 +1071,7 @@ implementation
                if l.loc=LOC_CONSTANT then
                if l.loc=LOC_CONSTANT then
                 begin
                 begin
                   if (longint(l.value)<0) then
                   if (longint(l.value)<0) then
-                   cg.a_load_const_reg(list,OS_32,aint($ffffffff),hregisterhi)
+                   cg.a_load_const_reg(list,OS_32,longint($ffffffff),hregisterhi)
                   else
                   else
                    cg.a_load_const_reg(list,OS_32,0,hregisterhi);
                    cg.a_load_const_reg(list,OS_32,0,hregisterhi);
                 end
                 end