diff options
author | Abseil Team <absl-team@google.com> | 2022-08-29 14:14:51 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-08-29 14:15:52 -0700 |
commit | d9382f72901dd2bd40d38834eb591cea784e90e5 (patch) | |
tree | 39086e30a602efa312fa3a4389ae41032c5be411 /absl/debugging/internal/address_is_readable.cc | |
parent | 75691f1c3292969c5a85288a3cee8ae831203302 (diff) |
Fix "unsafe narrowing" warnings in absl, 7/n.
Addresses failures with the following, in some files:
-Wshorten-64-to-32
-Wimplicit-int-conversion
-Wsign-compare
-Wsign-conversion
-Wtautological-unsigned-zero-compare
(This specific CL focuses on .cc files in debugging/internal/.)
Bug: chromium:1292951
PiperOrigin-RevId: 470812243
Change-Id: I5578030bb42ba73cb83d4df84f89e431ceac8992
Diffstat (limited to 'absl/debugging/internal/address_is_readable.cc')
-rw-r--r-- | absl/debugging/internal/address_is_readable.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/debugging/internal/address_is_readable.cc b/absl/debugging/internal/address_is_readable.cc index 4be6256b..91eaa76f 100644 --- a/absl/debugging/internal/address_is_readable.cc +++ b/absl/debugging/internal/address_is_readable.cc @@ -52,7 +52,7 @@ namespace debugging_internal { bool AddressIsReadable(const void *addr) { // Align address on 8-byte boundary. On aarch64, checking last // byte before inaccessible page returned unexpected EFAULT. - const uintptr_t u_addr = reinterpret_cast<uintptr_t>(addr) & ~7; + const uintptr_t u_addr = reinterpret_cast<uintptr_t>(addr) & ~uintptr_t{7}; addr = reinterpret_cast<const void *>(u_addr); // rt_sigprocmask below will succeed for this input. |