From 428d707b09743a91459e1c7792117f876ad4597f Mon Sep 17 00:00:00 2001 From: Sree Kuchibhotla Date: Fri, 14 Apr 2017 09:09:17 -0700 Subject: [PATCH] fix windows portability error --- src/core/lib/surface/completion_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/surface/completion_queue.c b/src/core/lib/surface/completion_queue.c index 3b2c4f60565..3cbfac39d26 100644 --- a/src/core/lib/surface/completion_queue.c +++ b/src/core/lib/surface/completion_queue.c @@ -170,7 +170,7 @@ static grpc_cq_completion *cq_event_queue_pop(grpc_cq_event_queue *q) { /* Note: The counter is not incremented/decremented atomically with push/pop. * The count is only eventually consistent */ static long cq_event_queue_num_items(grpc_cq_event_queue *q) { - return gpr_atm_no_barrier_load(&q->num_queue_items); + return (long) gpr_atm_no_barrier_load(&q->num_queue_items); } grpc_completion_queue *grpc_completion_queue_create_internal(