usp10: Simplify the "pr_2" assignment in GPOS_apply_ContextPos().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-04-17 20:26:59 +02:00 committed by Alexandre Julliard
parent 1b02c1ac50
commit 82d36ba63f
1 changed files with 1 additions and 2 deletions

View File

@ -2191,8 +2191,7 @@ static unsigned int GPOS_apply_ContextPos(const ScriptCache *script_cache, const
}
TRACE("Rule matches\n");
pr_2 = (const GPOS_PosClassRule_2*)((const BYTE*)pr+
FIELD_OFFSET(GPOS_PosClassRule_1, Class[g_count-1]));
pr_2 = (const GPOS_PosClassRule_2 *)&pr->Class[g_count - 1];
for (l = 0; l < GET_BE_WORD(pr->PosCount); l++)
{