瀏覽代碼

* 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 年之前
父節點
當前提交
de345ac191
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/x86/nx86set.pas

+ 1 - 1
compiler/x86/nx86set.pas

@@ -659,7 +659,7 @@ implementation
                     LOC_REFERENCE,LOC_CREFERENCE:
                       begin
                         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;
                     LOC_REGISTER,LOC_CREGISTER:
                       begin