diff options
author | 2017-02-14 22:39:47 -0800 | |
---|---|---|
committer | 2017-02-14 22:39:47 -0800 | |
commit | 7f9184f31450a0cff738b2d92a5e08535251348c (patch) | |
tree | c5433b9c07460cbda6d5cbeeecaa426771b28479 /test/core/util/trickle_endpoint.c | |
parent | 400b32b3cc2a28a678c19387fbb600874423bdd7 (diff) |
Review feedback
Diffstat (limited to 'test/core/util/trickle_endpoint.c')
-rw-r--r-- | test/core/util/trickle_endpoint.c | 4 |
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) { |