freetype/src/psaux
Werner Lemberg a9af691481 Fix handing of `FT_Bool'.
Before this commit we had code like

  (FT_Bool)( globals->glyph_styles[gindex] & 0x8000)

Since `FT_Bool' is defined to be an `unsigned char', the code
evaluated to something like

  (unsigned char)( 0x8532 & 0x8000)

which in turn expanded to

  (unsigned char)( 0x8000)

and finally yielded 0x00 – i.e., false – not as expected.

Problem reported and analyzed by Tony Smith <tony.smith@macro4.com>.

* include/freetype/fttypes.h (FT_BOOL): Add a comparison against
zero so that we always have a Boolean expression.

*/*: Replace castings to `FT_Bool' with calls to `FT_BOOL' where
possible.
2018-09-25 09:10:09 +02:00
..
afmparse.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afmparse.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
cffdecode.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
cffdecode.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
Jamfile Update copyright year. 2018-01-02 09:33:57 +01:00
module.mk Update copyright year. 2018-01-02 09:33:57 +01:00
psarrst.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psarrst.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psaux.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psauxerr.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psauxmod.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psauxmod.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psblues.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
psblues.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psconv.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
psconv.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
pserror.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
pserror.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psfixed.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psfont.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
psfont.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psft.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psft.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psglue.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
pshints.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
pshints.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psintrp.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
psintrp.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psobjs.c [psaux] Avoid slow PS font parsing in case of error. 2018-08-18 14:39:20 +02:00
psobjs.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psread.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
psread.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
psstack.c [cff] Fix handling of `roll' op in old engine. 2018-08-29 06:53:54 +02:00
psstack.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
pstypes.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
rules.mk Update copyright year. 2018-01-02 09:33:57 +01:00
t1cmap.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
t1cmap.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
t1decode.c */*: s/PSNames/psnames/. 2018-09-03 09:08:47 +02:00
t1decode.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00