mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-07 22:43:09 +00:00
Fix PVS-Studio static analyzer warning for "buffer underflow"
Amend 4e8e177c
This commit is contained in:
parent
5b0510c5b7
commit
cdebd70e15
1 changed files with 1 additions and 1 deletions
|
@ -5195,7 +5195,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag
|
|||
bool accepted_drag_drop = false;
|
||||
if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F))
|
||||
{
|
||||
memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512
|
||||
memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512 //-V1086
|
||||
value_changed = accepted_drag_drop = true;
|
||||
}
|
||||
if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F))
|
||||
|
|
Loading…
Add table
Reference in a new issue