aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-01-04 15:25:37 -0800
committerGravatar yang-g <yangg@google.com>2016-01-04 15:25:37 -0800
commit471dbd8217b158976a9e10610ad3135451df002a (patch)
tree75252d2d8805fc198e604d018bfffaef9c8c201e
parent062ad488881839d2637b7a191ade5b87346b4597 (diff)
Make possible lossy conversion explicit.
-rw-r--r--src/core/support/sync_posix.c2
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);
}