mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-06 22:34:24 +01:00
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;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user