mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Fixed C4267 conversion from size_t to int.
This commit is contained in:
		| @@ -10386,7 +10386,7 @@ static void SetClipboardTextFn_DefaultImpl(void*, const char* text) | |||||||
|     ImGuiContext& g = *GImGui; |     ImGuiContext& g = *GImGui; | ||||||
|     g.PrivateClipboard.clear(); |     g.PrivateClipboard.clear(); | ||||||
|     const char* text_end = text + strlen(text); |     const char* text_end = text + strlen(text); | ||||||
|     g.PrivateClipboard.resize((size_t)(text_end - text) + 1); |     g.PrivateClipboard.resize((int)(text_end - text) + 1); | ||||||
|     memcpy(&g.PrivateClipboard[0], text, (size_t)(text_end - text)); |     memcpy(&g.PrivateClipboard[0], text, (size_t)(text_end - text)); | ||||||
|     g.PrivateClipboard[(int)(text_end - text)] = 0; |     g.PrivateClipboard[(int)(text_end - text)] = 0; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user