From b73d7cabcb280ba7625e80978c1789eecd3c8ba4 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 1 Aug 2016 12:23:08 +0100 Subject: Move to bitfields in fz_font rather than chars/ints etc. --- source/fitz/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/fitz/font.c b/source/fitz/font.c index a291eab8..560f96ec 100644 --- a/source/fitz/font.c +++ b/source/fitz/font.c @@ -59,7 +59,7 @@ fz_new_font(fz_context *ctx, const char *name, int use_glyph_bbox, int glyph_cou font->glyph_count = glyph_count; - font->use_glyph_bbox = use_glyph_bbox; + font->use_glyph_bbox = !!use_glyph_bbox; if (use_glyph_bbox && glyph_count <= MAX_BBOX_TABLE_SIZE) { font->bbox_table = fz_malloc_array(ctx, glyph_count, sizeof(fz_rect)); -- cgit v1.2.3