diff options
-rw-r--r-- | absl/base/internal/raw_logging.cc | 2 | ||||
-rw-r--r-- | absl/numeric/int128.h | 6 | ||||
-rw-r--r-- | absl/strings/str_split.h | 2 |
3 files changed, 2 insertions, 8 deletions
diff --git a/absl/base/internal/raw_logging.cc b/absl/base/internal/raw_logging.cc index 7a32edded4ec..a332ec73b8f5 100644 --- a/absl/base/internal/raw_logging.cc +++ b/absl/base/internal/raw_logging.cc @@ -36,7 +36,7 @@ // This preprocessor token is also defined in raw_io.cc. If you need to copy // this, consider moving both to config.h instead. #if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || \ - defined(__Fuchsia__) + defined(__Fuchsia__) || defined(__native_client__) #include <unistd.h> diff --git a/absl/numeric/int128.h b/absl/numeric/int128.h index 11ecc8bcbd3c..2eded2f3b549 100644 --- a/absl/numeric/int128.h +++ b/absl/numeric/int128.h @@ -548,9 +548,6 @@ inline uint128& uint128::operator^=(uint128 other) { // Arithmetic operators. inline uint128 operator<<(uint128 lhs, int amount) { - assert(amount >= 0); // Negative shifts are undefined. - assert(amount < 128); // Shifts of >= 128 are undefined. - // uint64_t shifts of >= 64 are undefined, so we will need some // special-casing. if (amount < 64) { @@ -565,9 +562,6 @@ inline uint128 operator<<(uint128 lhs, int amount) { } inline uint128 operator>>(uint128 lhs, int amount) { - assert(amount >= 0); // Negative shifts are undefined. - assert(amount < 128); // Shifts of >= 128 are undefined. - // uint64_t shifts of >= 64 are undefined, so we will need some // special-casing. if (amount < 64) { diff --git a/absl/strings/str_split.h b/absl/strings/str_split.h index 5b3d6a8a91ea..713fdd0e6757 100644 --- a/absl/strings/str_split.h +++ b/absl/strings/str_split.h @@ -208,7 +208,7 @@ class ByAnyChar { // using absl::ByLength; // std::vector<std::string> v = absl::StrSplit("12345", ByLength(2)); // -// // v[0] == "12", v[1] == "35", v[2] == "5" +// // v[0] == "12", v[1] == "34", v[2] == "5" class ByLength { public: explicit ByLength(ptrdiff_t length); |