diff --git a/src/core/support/sync_posix.c b/src/core/support/sync_posix.c index d6a0f7c3258a2d5531d1a4dd950147b40d979cf6..4d59a100024b0adbfb0c1fee97eb4f31d32b0fbc 100644 --- a/src/core/support/sync_posix.c +++ b/src/core/support/sync_posix.c @@ -81,7 +81,7 @@ int gpr_cv_wait(gpr_cv* cv, gpr_mu* mu, gpr_timespec abs_deadline) { } else { struct timespec abs_deadline_ts; abs_deadline = gpr_convert_clock_type(abs_deadline, GPR_CLOCK_REALTIME); - abs_deadline_ts.tv_sec = abs_deadline.tv_sec; + abs_deadline_ts.tv_sec = (time_t)abs_deadline.tv_sec; abs_deadline_ts.tv_nsec = abs_deadline.tv_nsec; err = pthread_cond_timedwait(cv, mu, &abs_deadline_ts); }