diff options
author | Werner Lemberg <wl@gnu.org> | 2015-02-16 11:31:32 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2015-02-16 11:31:32 +0100 |
commit | 6f325c26cf3df4e4c7ad97b8bccfdcc096b6637e (patch) | |
tree | 06e54af88ba597ad9c097e8c4d21a51d3aa5f074 /src | |
parent | 1f377f0d50a6a4bdf2a4985a010af0403925681f (diff) | |
download | freetype2-6f325c26cf3df4e4c7ad97b8bccfdcc096b6637e.tar.gz |
New `TYPEOF' macro.
This helps suppress signedness warnings, avoiding issues with
implicit conversion changes.
* include/config/ftconfig.h, builds/unix/ftconfig.in,
builds/vms/ftconfig.h (TYPEOF): Define.
* include/internal/ftobjs.h (FT_PAD_FLOOR, FT_PIX_FLOOR),
src/autofit/afwarp.h (AF_WARPER_FLOOR): Use it.
Diffstat (limited to 'src')
-rw-r--r-- | src/autofit/afwarp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autofit/afwarp.h b/src/autofit/afwarp.h index 3b1c87ad9..a2c5f7748 100644 --- a/src/autofit/afwarp.h +++ b/src/autofit/afwarp.h @@ -25,7 +25,7 @@ FT_BEGIN_HEADER #define AF_WARPER_SCALE -#define AF_WARPER_FLOOR( x ) ( (x) & ~63 ) +#define AF_WARPER_FLOOR( x ) ( (x) & ~TYPEOF( x, 63 ) ) #define AF_WARPER_CEIL( x ) AF_WARPER_FLOOR( (x) + 63 ) |