From 504f8319a8211a24b49f68330b7a8962d8e4632c Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Fri, 14 Jun 2024 00:29:44 -0400 Subject: [PATCH] Rebuild nuklear.h Fixes #648 --- nuklear.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuklear.h b/nuklear.h index 878960db4..1bdcc8aee 100644 --- a/nuklear.h +++ b/nuklear.h @@ -16727,7 +16727,7 @@ nk_font_bake_pack(struct nk_font_baker *baker, it = config_iter; do { struct stbtt_fontinfo *font_info = &baker->build[i++].info; - font_info->userdata = alloc; + font_info->userdata = (void*)alloc; if (!stbtt_InitFont(font_info, (const unsigned char*)it->ttf_blob, stbtt_GetFontOffsetForIndex((const unsigned char*)it->ttf_blob, 0))) return nk_false; @@ -16735,7 +16735,7 @@ nk_font_bake_pack(struct nk_font_baker *baker, } *height = 0; *width = (total_glyph_count > 1000) ? 1024 : 512; - stbtt_PackBegin(&baker->spc, 0, (int)*width, (int)max_height, 0, 1, alloc); + stbtt_PackBegin(&baker->spc, 0, (int)*width, (int)max_height, 0, 1, (void*)alloc); { int input_i = 0; int range_n = 0;