| 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;
|
| }
|
|
|