Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Unified Diff: net/cert/ct_serialization.cc

Issue 1498003003: Remove kint64max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: INT64_MAX Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/backoff_entry.cc ('k') | net/disk_cache/simple/simple_entry_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/ct_serialization.cc
diff --git a/net/cert/ct_serialization.cc b/net/cert/ct_serialization.cc
index 6ea3cedc20fabe7e5bacbf2a3458eafdf3d233c5..235d37e65ad1fc8106a05d602c3c9f04b4e61a48 100644
--- a/net/cert/ct_serialization.cc
+++ b/net/cert/ct_serialization.cc
@@ -6,6 +6,8 @@
#include <stdint.h>
+#include <limits>
+
#include "base/logging.h"
namespace net {
@@ -360,7 +362,7 @@ bool DecodeSignedCertificateTimestamp(
return false;
}
- if (timestamp > static_cast<uint64_t>(kint64max)) {
+ if (timestamp > static_cast<uint64_t>(std::numeric_limits<int64_t>::max())) {
DVLOG(1) << "Timestamp value too big to cast to int64_t: " << timestamp;
return false;
}
« no previous file with comments | « net/base/backoff_entry.cc ('k') | net/disk_cache/simple/simple_entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698