Browse Source

+ actually set hasofs to true if 'offset' is encountered in BuildConstSymbolExpression

git-svn-id: trunk@38149 -
nickysn 7 years ago
parent
commit
3b1bd8de3f
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/x86/rax86int.pas

+ 4 - 1
compiler/x86/rax86int.pas

@@ -919,7 +919,10 @@ Unit Rax86int;
             AS_OFFSET:
               begin
                 if (actasmtoken = AS_OFFSET) then
-                  needofs:=true
+                  begin
+                    needofs:=true;
+                    hasofs:=true;
+                  end
                 else
                   needvmtofs:=true;
                 Consume(actasmtoken);