From: Dave Airlie Date: Fri, 17 May 2019 01:26:57 +0000 (+1000) Subject: imgui: fix undefined behaviour bitshift. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebdddb36a0418caf0b80810c3641ee237905a5e0;p=mesa.git imgui: fix undefined behaviour bitshift. imgui_draw.cpp:1781: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour Reported by coverity Acked-by: Ilia Mirkin --- diff --git a/src/imgui/imgui_draw.cpp b/src/imgui/imgui_draw.cpp index 1d4e1d51692..c69c01ee801 100644 --- a/src/imgui/imgui_draw.cpp +++ b/src/imgui/imgui_draw.cpp @@ -1778,7 +1778,7 @@ static void UnpackBoolVectorToFlatIndexList(const ImBoolVector* in, ImVectorpush_back((int)((it - it_begin) << 5) + bit_n); }