Index: base/strings/safe_sprintf.cc |
diff --git a/base/strings/safe_sprintf.cc b/base/strings/safe_sprintf.cc |
index 1c927184658559d1bc238578e3918474da755de4..5b575635519265bee696fde37e780b08b0e2118f 100644 |
--- a/base/strings/safe_sprintf.cc |
+++ b/base/strings/safe_sprintf.cc |
@@ -176,8 +176,7 @@ class Buffer { |
// overflowed |size_|) at any time during padding. |
inline bool Pad(char pad, size_t padding, size_t len) { |
DEBUG_CHECK(pad); |
- DEBUG_CHECK(padding >= 0 && padding <= kSSizeMax); |
- DEBUG_CHECK(len >= 0); |
+ DEBUG_CHECK(padding <= kSSizeMax); |
for (; padding > len; --padding) { |
if (!Out(pad)) { |
if (--padding) { |
@@ -283,7 +282,6 @@ bool Buffer::IToASCII(bool sign, bool upcase, int64_t i, int base, |
DEBUG_CHECK(base <= 16); |
DEBUG_CHECK(!sign || base == 10); |
DEBUG_CHECK(pad == '0' || pad == ' '); |
- DEBUG_CHECK(padding >= 0); |
DEBUG_CHECK(padding <= kSSizeMax); |
DEBUG_CHECK(!(sign && prefix && *prefix)); |