aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/util/trickle_endpoint.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-02-14 22:39:47 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-02-14 22:39:47 -0800
commit7f9184f31450a0cff738b2d92a5e08535251348c (patch)
treec5433b9c07460cbda6d5cbeeecaa426771b28479 /test/core/util/trickle_endpoint.c
parent400b32b3cc2a28a678c19387fbb600874423bdd7 (diff)
Review feedback
Diffstat (limited to 'test/core/util/trickle_endpoint.c')
-rw-r--r--test/core/util/trickle_endpoint.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/core/util/trickle_endpoint.c b/test/core/util/trickle_endpoint.c
index 5b6c666950..7ab0488a66 100644
--- a/test/core/util/trickle_endpoint.c
+++ b/test/core/util/trickle_endpoint.c
@@ -166,7 +166,9 @@ grpc_endpoint *grpc_trickle_endpoint_create(grpc_endpoint *wrap,
return &te->base;
}
-static double ts2dbl(gpr_timespec s) { return s.tv_sec + 1e-9 * s.tv_nsec; }
+static double ts2dbl(gpr_timespec s) {
+ return (double)s.tv_sec + 1e-9 * (double)s.tv_nsec;
+}
size_t grpc_trickle_endpoint_trickle(grpc_exec_ctx *exec_ctx,
grpc_endpoint *ep) {