Ver código fonte

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

git-svn-id: trunk@48095 -
florian 4 anos atrás
pai
commit
6d75992674
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      compiler/ncgcon.pas

+ 1 - 1
compiler/ncgcon.pas

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