gfe-relnote: n/a(log only) fix incomparable type error in conditional expression in
QuicConnectionCloseFrame. Not flag protected.

PiperOrigin-RevId: 245096975
Change-Id: I7a256d5a9da894a1a9811ef01f101e9d9bc00715
diff --git a/quic/core/frames/quic_connection_close_frame.cc b/quic/core/frames/quic_connection_close_frame.cc
index baffa9d..ca066ab 100644
--- a/quic/core/frames/quic_connection_close_frame.cc
+++ b/quic/core/frames/quic_connection_close_frame.cc
@@ -4,6 +4,8 @@
 
 #include "net/third_party/quiche/src/quic/core/frames/quic_connection_close_frame.h"
 
+#include <memory>
+
 namespace quic {
 
 QuicConnectionCloseFrame::QuicConnectionCloseFrame()
@@ -52,7 +54,8 @@
              : ((connection_close_frame.close_type ==
                  IETF_QUIC_APPLICATION_CONNECTION_CLOSE)
                     ? connection_close_frame.application_error_code
-                    : connection_close_frame.quic_error_code))
+                    : static_cast<uint16_t>(
+                          connection_close_frame.quic_error_code)))
      << ", extracted_error_code: "
      << connection_close_frame.extracted_error_code << ", error_details: '"
      << connection_close_frame.error_details