From 33f718ce4cd914503fe43411e4f9d1cc8820ccff Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 8 Jun 2014 14:07:32 +0200 Subject: [PATCH] Small CXX_BUILD fix. --- gfx/fonts/freetype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/fonts/freetype.c b/gfx/fonts/freetype.c index 10057de6f1..d0ed841d82 100644 --- a/gfx/fonts/freetype.c +++ b/gfx/fonts/freetype.c @@ -100,8 +100,8 @@ static bool ft_renderer_create_atlas(ft_renderer_t *handle) if (buffer[i]) memcpy(buffer[i], slot->bitmap.buffer, slot->bitmap.rows * pitches[i]); - max_width = max(max_width, slot->bitmap.width); - max_height = max(max_height, slot->bitmap.rows); + max_width = max(max_width, (unsigned)slot->bitmap.width); + max_height = max(max_height, (unsigned)slot->bitmap.rows); } handle->atlas.width = max_width * ATLAS_COLS;