Fix QuicPacketCreatorTest failure in Quiche OSS CI.

Local install of quiche now passes the test suite.

PiperOrigin-RevId: 895897686
diff --git a/quiche/quic/core/quic_packet_creator_test.cc b/quiche/quic/core/quic_packet_creator_test.cc
index 8abe1f2..c3d54b7 100644
--- a/quiche/quic/core/quic_packet_creator_test.cc
+++ b/quiche/quic/core/quic_packet_creator_test.cc
@@ -350,8 +350,10 @@
   }
 
   bool LastTwoBytesAreSconeIndicator(const char* buffer, size_t length) {
-    return (buffer[length - 2] == ((kSconeIndicator & 0xff00) >> 8) &&
-            buffer[length - 1] == (kSconeIndicator & 0xff));
+    return (buffer[length - 2] ==
+                static_cast<const char>(((kSconeIndicator & 0xff00) >> 8)) &&
+            buffer[length - 1] ==
+                static_cast<const char>(kSconeIndicator & 0xff));
   }
 
   void TestChaosProtection(bool enabled);