Ver código fonte

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

git-svn-id: trunk@48095 -
(cherry picked from commit 6d75992674a3f7818195507d9cae1fbc8370c10f)
florian 4 anos atrás
pai
commit
0049abce42
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      compiler/ncgcon.pas

+ 1 - 1
compiler/ncgcon.pas

@@ -204,7 +204,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;