Преглед изворни кода

* call first_addpointer and first_cmppointer in pass_1 for pchars as well. Fixes
huge pointer arithmetic/comparison on huge pchars.

git-svn-id: trunk@28159 -

nickysn пре 11 година
родитељ
комит
2b2224494b
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      compiler/nadd.pas

+ 2 - 2
compiler/nadd.pas

@@ -3011,9 +3011,9 @@ implementation
          else if is_pchar(ld) then
            begin
              if nodetype in [addn,subn,muln,andn,orn,xorn] then
-               expectloc:=LOC_REGISTER
+               result:=first_addpointer
              else
-               expectloc:=LOC_FLAGS;
+               result:=first_cmppointer;
            end
 
          { is one of the operands a string }