From de345ac191d00d28a49c1e911fd9e7d855c72a58 Mon Sep 17 00:00:00 2001 From: nickysn Date: Sun, 26 May 2013 10:53:42 +0000 Subject: [PATCH] * 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 - --- compiler/x86/nx86set.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/x86/nx86set.pas b/compiler/x86/nx86set.pas index 9ec1ac3db8..08ec055443 100644 --- a/compiler/x86/nx86set.pas +++ b/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