This commit will silence various signed/unsigned conversion
warning by casting the value explicitly or changing the
variable type.
Details
Details
- Reviewers
thakis
Diff Detail
Diff Detail
Event Timeline
src/Unwind/Unwind-EHABI.cpp | ||
---|---|---|
213 | Both subexpressions of the | used to be of type signed int; the warning will be for converting the result of the | to unsigned. |
Comment Actions
Thanks for your review. Committed as r211912 .
Note:
- (uint32_t)0x1 is replaced with 1u to address the first suggestion.
- The second suggestion w.r.t. RegisterRange() won't work due to the integer promotion rules, thus that line is committed as-is.
No need for the 0x
Also, since we know this is always 32bit code, you can just write ~1u (everywhere)