Fixed C4267 conversion from size_t to int.

This commit is contained in:
Branimir Karadžić 2017-08-31 13:04:40 -07:00 committed by omar
parent 6a1ba317c7
commit 670d40642f

View File

@ -10386,7 +10386,7 @@ static void SetClipboardTextFn_DefaultImpl(void*, const char* text)
ImGuiContext& g = *GImGui;
g.PrivateClipboard.clear();
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));
g.PrivateClipboard[(int)(text_end - text)] = 0;
}