freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] tt_face_init returns incorrect error code


From: Werner LEMBERG
Subject: Re: [ft-devel] tt_face_init returns incorrect error code
Date: Tue, 04 Dec 2007 22:51:10 +0100 (CET)

> Here's a patch for something that has caused me some trouble.
> tt_face_init in ttobjs.c uses logical OR to concatenate a series of
> calls to functions that return integer error codes.  Unfortunately,
> logical OR converts the error code, if any, to 1, because it returns
> a boolean value, 0 or 1.
> 
> That had the very irritating consequence for me of changing
> FT_Err_Out_Of_Memory (0x40) into FT_Err_Cannot_Open_Resource (0x01)
> which sent me on a wild goose chase.  [...]
> 
> Here's a diff (from Perforce - I hope the format is okay):

Applied, thanks.


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]