From a48cdddef3f53c7dd6239f0fe92d723d5f550dc8 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Thu, 1 Aug 2024 21:15:46 -0400 Subject: [PATCH] * src/winfonts/winfnt.c (fnt_face_get_dll_font): Unwrap arithmetic. --- src/winfonts/winfnt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c index 6dbe74bf5..74a06416c 100644 --- a/src/winfonts/winfnt.c +++ b/src/winfonts/winfnt.c @@ -359,8 +359,8 @@ if ( type_id == 0x8008U ) { font_count = count; - font_offset = FT_STREAM_POS() + 4 + - (FT_ULong)( stream->cursor - stream->limit ); + font_offset = FT_STREAM_POS() + 4 - + (FT_ULong)( stream->limit - stream->cursor ); break; }