| Index: net/quic/core/quic_data_writer.cc
|
| diff --git a/net/quic/core/quic_data_writer.cc b/net/quic/core/quic_data_writer.cc
|
| index f56145887a28f547166dfa1c02e39a169f5c51b3..698355333081bcdb6ba77d5dbe83b1dcff4b181f 100644
|
| --- a/net/quic/core/quic_data_writer.cc
|
| +++ b/net/quic/core/quic_data_writer.cc
|
| @@ -9,7 +9,6 @@
|
| #include <limits>
|
|
|
| using base::StringPiece;
|
| -using std::numeric_limits;
|
|
|
| namespace net {
|
|
|
| @@ -52,7 +51,7 @@ bool QuicDataWriter::WriteUFloat16(uint64_t value) {
|
| result = static_cast<uint16_t>(value);
|
| } else if (value >= kUFloat16MaxValue) {
|
| // Value is out of range; clamp it to the maximum representable.
|
| - result = numeric_limits<uint16_t>::max();
|
| + result = std::numeric_limits<uint16_t>::max();
|
| } else {
|
| // The highest bit is between position 13 and 42 (zero-based), which
|
| // corresponds to exponent 1-30. In the output, mantissa is from 0 to 10,
|
| @@ -84,7 +83,7 @@ bool QuicDataWriter::WriteUFloat16(uint64_t value) {
|
| }
|
|
|
| bool QuicDataWriter::WriteStringPiece16(StringPiece val) {
|
| - if (val.size() > numeric_limits<uint16_t>::max()) {
|
| + if (val.size() > std::numeric_limits<uint16_t>::max()) {
|
| return false;
|
| }
|
| if (!WriteUInt16(static_cast<uint16_t>(val.size()))) {
|
|
|