mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Warning fix
This commit is contained in:
		| @@ -5536,7 +5536,7 @@ static int ImTextCharToUtf8(char* buf, size_t buf_size, unsigned int c) | |||||||
|         }  |         }  | ||||||
|         else if (c >= 0xd800 && c < 0xdc00)  |         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++] = 0xf0 + (c >> 18); | ||||||
|             buf[i++] = 0x80 + ((c >> 12) & 0x3f); |             buf[i++] = 0x80 + ((c >> 12) & 0x3f); | ||||||
|             buf[i++] = 0x80 + ((c >> 6) & 0x3f); |             buf[i++] = 0x80 + ((c >> 6) & 0x3f); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user