aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-04-29 12:52:35 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-04-29 12:52:35 -0700
commit39d4d72eb6c3b34664ce4d65cfa4f940c78ee536 (patch)
treea48e899ca449017d0c357813ab665eab7cc90fa9 /src/core
parentc9b3b1874d3089bc4192cc18a75bedf5150254a2 (diff)
Cast away errors on Windows
Diffstat (limited to 'src/core')
-rw-r--r--src/core/transport/chttp2_transport.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/transport/chttp2_transport.c b/src/core/transport/chttp2_transport.c
index 264e653124..dd7c60710b 100644
--- a/src/core/transport/chttp2_transport.c
+++ b/src/core/transport/chttp2_transport.c
@@ -914,8 +914,8 @@ static int prepare_write(transport *t) {
window_delta = grpc_chttp2_preencode(
s->outgoing_sopb->ops, &s->outgoing_sopb->nops,
GPR_MIN(t->outgoing_window, s->outgoing_window), &s->writing_sopb);
- FLOWCTL_TRACE(t, t, outgoing, 0, -window_delta);
- FLOWCTL_TRACE(t, s, outgoing, s->id, -window_delta);
+ FLOWCTL_TRACE(t, t, outgoing, 0, -(gpr_int64)window_delta);
+ FLOWCTL_TRACE(t, s, outgoing, s->id, -(gpr_int64)window_delta);
t->outgoing_window -= window_delta;
s->outgoing_window -= window_delta;
@@ -1277,8 +1277,8 @@ static grpc_chttp2_parse_error update_incoming_window(transport *t, stream *s) {
return GRPC_CHTTP2_CONNECTION_ERROR;
}
- FLOWCTL_TRACE(t, t, incoming, 0, -t->incoming_frame_size);
- FLOWCTL_TRACE(t, s, incoming, s->id, -t->incoming_frame_size);
+ FLOWCTL_TRACE(t, t, incoming, 0, -(gpr_int64)t->incoming_frame_size);
+ FLOWCTL_TRACE(t, s, incoming, s->id, -(gpr_int64)t->incoming_frame_size);
t->incoming_window -= t->incoming_frame_size;
s->incoming_window -= t->incoming_frame_size;