diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-05-29 20:37:26 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-06-03 15:52:56 -0400 |
commit | c3ad9cf5b11772fbc9ff4dd793f0a7e897b5df5a (patch) | |
tree | d3bc8ae95c777e712e25b0e8c823f2d8c93d24ca /src/xftfreetype.c | |
parent | a9ce40d7f51dd20533d25e2a252afb1d09194d3f (diff) | |
download | xorg-lib-libXft-c3ad9cf5b11772fbc9ff4dd793f0a7e897b5df5a.tar.gz |
change the internal memory-allocator to use size_t
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/xftfreetype.c')
-rw-r--r-- | src/xftfreetype.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xftfreetype.c b/src/xftfreetype.c index 2db163b..4d11550 100644 --- a/src/xftfreetype.c +++ b/src/xftfreetype.c @@ -58,7 +58,7 @@ _XftGetFile (const FcChar8 *file, int id) if (!f) return NULL; - XftMemAlloc (XFT_MEM_FILE, (int)(sizeof (XftFtFile) + strlen ((const char *) file) + 1)); + XftMemAlloc (XFT_MEM_FILE, sizeof (XftFtFile) + strlen ((const char *) file) + 1); if (XftDebug () & XFT_DBG_REF) printf ("FontFile %s/%d matches new\n", file, id); @@ -776,7 +776,7 @@ XftFontOpenInfo (Display *dpy, FcChar32 rehash_value; FcBool antialias; int max_glyph_memory; - int alloc_size; + size_t alloc_size; int ascent, descent, height; int i; int num_glyphs; @@ -882,7 +882,7 @@ XftFontOpenInfo (Display *dpy, alloc_size = (sizeof (XftFontInt) + (size_t)num_glyphs * sizeof (XftGlyph *) + hash_value * sizeof (XftUcsHash)); - font = malloc ((size_t)alloc_size); + font = malloc (alloc_size); if (!font) goto bail2; |