From f611927f14726574b3af85373ee856854cb6010a Mon Sep 17 00:00:00 2001 From: David Garcia Quintas Date: Sat, 12 Sep 2015 17:02:30 -0700 Subject: [PATCH] Fixed compilation with -Wsign-conversion on mac --- src/core/support/log_posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/support/log_posix.c b/src/core/support/log_posix.c index 021c4666d41..8b050dbee70 100644 --- a/src/core/support/log_posix.c +++ b/src/core/support/log_posix.c @@ -64,7 +64,7 @@ void gpr_log(const char *file, int line, gpr_log_severity severity, } else { message = allocated = gpr_malloc((size_t)ret + 1); va_start(args, format); - vsnprintf(message, ret + 1, format, args); + vsnprintf(message, (size_t)(ret + 1), format, args); va_end(args); } gpr_log_message(file, line, severity, message);