Fix undefined behavior of left-shifting uint64_t by 64 in
UInt<>::shift_right implementation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/test/src/__support/uint_test.cpp | ||
---|---|---|
516–519 | is there a reason that these tests are changed? |
libc/test/src/__support/uint_test.cpp | ||
---|---|---|
516–519 | Those were the correct bounds of the tests. Previously these tests failed with the correct bounds, and it turns out because of the undefined behavior in the shift function that is fixed in this patch. |
libc/test/src/__support/uint_test.cpp | ||
---|---|---|
516–519 | SGTM |
is there a reason that these tests are changed?