You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that unsigned integer overflow is not undefined behavior (contrary to signed overflow, which is undefined), it is just flagged by Clang since it might indicate a bug.
martinfinke
changed the title
Undefined behavior in fileOrderComparator
Unsigned integer overflow in fileOrderComparator
Sep 12, 2018
Note that unsigned integer overflow is not undefined behavior (contrary to signed overflow, which is undefined), it is just flagged by Clang since it might indicate a bug.
Good point. I think it's a bug, as it's about ordering line numbers.
Clang with
-fsanitize=undefined
shows this error message:The code in question is:
where
m_line
is of typeunsigned
.The text was updated successfully, but these errors were encountered: