shafik added a comment.
Note, in both C and C++ converting a `-1` to unsigned will always result in the
max unsigned value e.g.:
#include <iostream>
#include <cstdint>
int main() {
int8_t i8 = -1;
int32_t i32 = -1;
unsigned x = i8;
std::cout << x << "\n";
x = i32;
std::cout << x << "\n";
}
output:
4294967295
4294967295
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134493/new/
https://reviews.llvm.org/D134493
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits