Browse Source

* added missing setbase fixup in tx86innode.pass_generate_code for the case of LOC_CONSTANT in LOC_REFERENCE for large sets

git-svn-id: trunk@24619 -
nickysn 12 years ago
parent
commit
de345ac191
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/x86/nx86set.pas

+ 1 - 1
compiler/x86/nx86set.pas

@@ -659,7 +659,7 @@ implementation
                     LOC_REFERENCE,LOC_CREFERENCE:
                     LOC_REFERENCE,LOC_CREFERENCE:
                       begin
                       begin
                         inc(right.location.reference.offset,(left.location.value-setbase) shr 3);
                         inc(right.location.reference.offset,(left.location.value-setbase) shr 3);
-                        emit_const_ref(A_TEST,S_B,1 shl (left.location.value and 7),right.location.reference);
+                        emit_const_ref(A_TEST,S_B,1 shl ((left.location.value-setbase) and 7),right.location.reference);
                       end;
                       end;
                     LOC_REGISTER,LOC_CREGISTER:
                     LOC_REGISTER,LOC_CREGISTER:
                       begin
                       begin