freetype2/src/base
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
..
Jamfile [errors] Introduce `FT_Error_String'. 2018-08-30 14:09:04 +02:00
ftadvanc.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftbase.c [errors] Introduce `FT_Error_String'. 2018-08-30 14:09:04 +02:00
ftbase.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftbbox.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftbdf.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftbitmap.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
ftcalc.c Add macros for handling over-/underflowing `FT_Int64' values. 2018-08-23 17:53:54 +02:00
ftcid.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftcolor.c Fix typo (#54238). 2018-07-05 23:13:35 +02:00
ftdbgmem.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftdebug.c Whitespace. 2018-08-31 20:10:38 +02:00
fterrors.c [errors] Introduce `FT_Error_String'. 2018-08-30 14:09:04 +02:00
ftfntfmt.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftfstype.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftgasp.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftgloadr.c [base] Remove unused function `FT_GlyphLoader_CopyPoints'. 2018-09-20 06:26:34 +02:00
ftglyph.c Various minor clean-ups. 2018-08-26 06:39:43 +02:00
ftgxval.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
fthash.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftinit.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
ftlcdfil.c [base] API for Harmony LCD rendering. 2018-06-07 02:48:48 -04:00
ftmac.c Restore missing comment lines and other minor fixes 2018-06-04 20:33:56 +05:30
ftmm.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
ftobjs.c Fix handing of `FT_Bool'. 2018-09-25 09:10:09 +02:00
ftotval.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftoutln.c Remove `FT_Outline_{New,Done}_Internal'. 2018-09-01 11:04:58 +02:00
ftpatent.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftpfr.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftpsprop.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
ftrfork.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
ftsnames.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftstream.c Minor tracing adjustments. 2018-08-26 12:03:33 +02:00
ftstroke.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftsynth.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
ftsystem.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
fttrigon.c * src/base/fttrigon.c (FT_Tan): Improve accuracy. 2018-06-28 21:42:26 -04:00
fttype1.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
ftutil.c Don't use `trace_' prefix for FT_COMPONENT arguments. 2018-08-15 18:13:17 +02:00
ftver.rc [build] Fortify dllexport/dllimport attributes (#53969,#54330). 2018-07-24 23:01:34 -04:00
ftwinfnt.c [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
md5.c * src/base/md5.c: Updated to recent version. 2016-06-16 06:17:54 +02:00
md5.h * src/base/md5.c, src/base/md5.h: Updated to recent version. 2013-10-22 01:10:10 +02:00
rules.mk [errors] Introduce `FT_Error_String'. 2018-08-30 14:09:04 +02:00