diff options
author | yang-g <yangg@google.com> | 2016-01-04 15:25:37 -0800 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-01-04 15:25:37 -0800 |
commit | 471dbd8217b158976a9e10610ad3135451df002a (patch) | |
tree | 75252d2d8805fc198e604d018bfffaef9c8c201e | |
parent | 062ad488881839d2637b7a191ade5b87346b4597 (diff) |
Make possible lossy conversion explicit.
-rw-r--r-- | src/core/support/sync_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/support/sync_posix.c b/src/core/support/sync_posix.c index d6a0f7c325..4d59a10002 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); } |