Henri Verbeet : usp10: Simplify the "pr_2" assignment in GPOS_apply_ContextPos().
Alexandre Julliard
julliard at winehq.org
Wed Apr 19 14:49:38 CDT 2017
Module: wine
Branch: master
Commit: 82d36ba63fe2132e1cca73cf23b7f3a92207151a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=82d36ba63fe2132e1cca73cf23b7f3a92207151a
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Apr 17 20:26:59 2017 +0200
usp10: Simplify the "pr_2" assignment in GPOS_apply_ContextPos().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/usp10/opentype.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/usp10/opentype.c b/dlls/usp10/opentype.c
index ec425a1..e190b92 100644
--- a/dlls/usp10/opentype.c
+++ b/dlls/usp10/opentype.c
@@ -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++)
{
More information about the wine-cvs
mailing list