Merge pull request #3337 from dgquintas/sign_macosx

Fixes for -Wsign-conversion compilation errors (mac & C#)
pull/3123/head^2
Craig Tiller 9 years ago
commit 2616666964
  1. 2
      src/core/support/log_posix.c
  2. 2
      src/csharp/ext/grpc_csharp_ext.c

@ -64,7 +64,7 @@ void gpr_log(const char *file, int line, gpr_log_severity severity,
} else { } else {
message = allocated = gpr_malloc((size_t)ret + 1); message = allocated = gpr_malloc((size_t)ret + 1);
va_start(args, format); va_start(args, format);
vsnprintf(message, ret + 1, format, args); vsnprintf(message, (size_t)(ret + 1), format, args);
va_end(args); va_end(args);
} }
gpr_log_message(file, line, severity, message); gpr_log_message(file, line, severity, message);

@ -252,7 +252,7 @@ GPR_EXPORT gpr_intptr GPR_CALLTYPE grpcsharp_batch_context_recv_message_length(
if (!ctx->recv_message) { if (!ctx->recv_message) {
return -1; return -1;
} }
return grpc_byte_buffer_length(ctx->recv_message); return (gpr_intptr)grpc_byte_buffer_length(ctx->recv_message);
} }
/* /*

Loading…
Cancel
Save