[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] [PATCH] Read unsigned int from font file to avoid sign ex
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] [PATCH] Read unsigned int from font file to avoid sign extension |
Date: |
Tue, 12 Apr 2011 09:28:20 +0200 (CEST) |
> FT_GET_ULONG is defined as FT_GET_MACRO( FT_Stream_GetLong, FT_ULong )
> which casts a probably sign extended long to a unsigned long, thus the
> 0xffffffff prefix.
>
> I don't know which approach to fix this issue is desired, so I'm
> proposing two patches here.
Thanks a lot! I've decided to use your second patch. It's now in the
git repository.
Werner