Skip to content

Commit

Permalink
Fix undefined behavior (#2561)
Browse files Browse the repository at this point in the history
  • Loading branch information
djdeath authored and ocornut committed May 18, 2019
1 parent fc3c3de commit 679cf74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui_draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ static void UnpackBoolVectorToFlatIndexList(const ImBoolVector* in, ImVector<int
for (const int* it = it_begin; it < it_end; it++)
if (int entries_32 = *it)
for (int bit_n = 0; bit_n < 32; bit_n++)
if (entries_32 & (1 << bit_n))
if (entries_32 & (1u << bit_n))
out->push_back((int)((it - it_begin) << 5) + bit_n);
}

Expand Down

0 comments on commit 679cf74

Please sign in to comment.