mirror of https://github.com/ocornut/imgui
Fixed C4267 conversion from size_t to int.
This commit is contained in:
parent
6a1ba317c7
commit
670d40642f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue