Browse Source

AArch64 cgcpu: add missing brackets around and/or expression

Jonas Maebe 2 years ago
parent
commit
230142e183
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/aarch64/aasmcpu.pas

+ 2 - 2
compiler/aarch64/aasmcpu.pas

@@ -708,8 +708,8 @@ implementation
           references internally, they should never end up here with an
           references internally, they should never end up here with an
           extra base or offset) }
           extra base or offset) }
         if (ref.refaddr in [addr_gotpage,addr_page]) and
         if (ref.refaddr in [addr_gotpage,addr_page]) and
-           (ref.base<>NR_NO) or
-           (ref.index<>NR_NO) then
+           ((ref.base<>NR_NO) or
+            (ref.index<>NR_NO)) then
           begin
           begin
             result:=sr_internal_illegal;
             result:=sr_internal_illegal;
             exit;
             exit;