Przeglądaj źródła

* fix proposed by Christo Crause: properly handle pointer constant nodes on avr, resolves #38321

git-svn-id: trunk@48095 -
florian 4 lat temu
rodzic
commit
6d75992674
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      compiler/ncgcon.pas

+ 1 - 1
compiler/ncgcon.pas

@@ -206,7 +206,7 @@ implementation
       begin
       begin
          { an integer const. behaves as a memory reference }
          { an integer const. behaves as a memory reference }
          location_reset(location,LOC_CONSTANT,OS_ADDR);
          location_reset(location,LOC_CONSTANT,OS_ADDR);
-         location.value:=aint(value);
+         location.value:=PInt(value);
       end;
       end;