LSC: Replace uses of `int64` with `int64_t` and similar integer type aliases.
This LSC is part of an effort described in go/totw/190 to delete
third_party/absl/base/integral_types.h, and improve consistency between google3
and the external C++ community.
This change also replaces uses of other symbols defined in
third_party/absl/base/integral_types.h. For instance, `kint64max` will be
replaced with `std::numeric_limits<int64_t>::max()`.
For documentation regarding this LSC, see go/remove-integral-types-lsc.
For historical background, see go/remove-integral-types.
Tested:
Some test failures are present, but the CL author has decided to mail the change anyway
PiperOrigin-RevId: 379611688
diff --git a/quic/qbone/qbone_control_stream.cc b/quic/qbone/qbone_control_stream.cc
index 944257f..7303b06 100644
--- a/quic/qbone/qbone_control_stream.cc
+++ b/quic/qbone/qbone_control_stream.cc
@@ -4,6 +4,8 @@
#include "quic/qbone/qbone_control_stream.h"
+#include <cstdint>
+#include <limits>
#include "absl/strings/string_view.h"
#include "quic/core/quic_session.h"
#include "quic/platform/api/quic_bug_tracker.h"
@@ -51,10 +53,10 @@
QUIC_BUG(quic_bug_11023_1) << "Failed to serialize QboneControlRequest";
return false;
}
- if (tmp.size() > kuint16max) {
+ if (tmp.size() > std::numeric_limits<uint16_t>::max()) {
QUIC_BUG(quic_bug_11023_2)
<< "QboneControlRequest too large: " << tmp.size() << " > "
- << kuint16max;
+ << std::numeric_limits<uint16_t>::max();
return false;
}
uint16_t size = tmp.size();