Adds integer type casts to fix builds on MacOS.

Fixes issues reported in pull requests:
  https://github.com/envoyproxy/envoy/pull/19360
  https://github.com/envoyproxy/envoy/pull/19408

PiperOrigin-RevId: 419931794
diff --git a/http2/adapter/oghttp2_session.cc b/http2/adapter/oghttp2_session.cc
index 604b1cb..a91af7b 100644
--- a/http2/adapter/oghttp2_session.cc
+++ b/http2/adapter/oghttp2_session.cc
@@ -417,7 +417,7 @@
   RunOnExit r{[this]() { processing_bytes_ = false; }};
 
   if (options_.blackhole_data_on_connection_error && latched_error_) {
-    return bytes.size();
+    return static_cast<int64_t>(bytes.size());
   }
 
   int64_t preface_consumed = 0;
@@ -439,7 +439,7 @@
     if (!remaining_preface_.empty()) {
       QUICHE_VLOG(2) << "Preface bytes remaining: "
                      << remaining_preface_.size();
-      return min_size;
+      return static_cast<int64_t>(min_size);
     }
     preface_consumed = min_size;
   }
@@ -453,7 +453,7 @@
   if (latched_error_ || result < 0) {
     QUICHE_VLOG(2) << "ProcessBytes encountered an error.";
     if (options_.blackhole_data_on_connection_error) {
-      return bytes.size() + preface_consumed;
+      return static_cast<int64_t>(bytes.size() + preface_consumed);
     } else {
       return ProcessBytesError::kUnspecified;
     }