From b6ac37149627d945ed6ab46e47bd6d084b6635f2 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 25 Sep 2014 20:55:48 +0100 Subject: [PATCH] Warning fix --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 013a7889f..c99df1f3b 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -5536,7 +5536,7 @@ static int ImTextCharToUtf8(char* buf, size_t buf_size, unsigned int c) } else if (c >= 0xd800 && c < 0xdc00) { - if (i+4 > n) return NULL; + if (i+4 > n) return 0; buf[i++] = 0xf0 + (c >> 18); buf[i++] = 0x80 + ((c >> 12) & 0x3f); buf[i++] = 0x80 + ((c >> 6) & 0x3f);