diff options
author | Marcin Wyszynski <marcin.pixie@gmail.com> | 2015-07-23 20:00:32 +0200 |
---|---|---|
committer | Marcin Wyszynski <marcin.pixie@gmail.com> | 2015-07-23 20:00:32 +0200 |
commit | ea0c18b3f2f93c4f693646a22810a8fad00a7fb3 (patch) | |
tree | 0f01dcae69dc40deeb1543388465cff3cf9eae10 /src/ruby | |
parent | ac91eddb606fce140a4f2ee3e99fe81f2efa59bc (diff) |
Make time_t to int conversion explicit on tv_nsec
Diffstat (limited to 'src/ruby')
-rw-r--r-- | src/ruby/ext/grpc/rb_grpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ruby/ext/grpc/rb_grpc.c b/src/ruby/ext/grpc/rb_grpc.c index 829f825597..b0b37a8705 100644 --- a/src/ruby/ext/grpc/rb_grpc.c +++ b/src/ruby/ext/grpc/rb_grpc.c @@ -139,7 +139,7 @@ gpr_timespec grpc_rb_time_timeval(VALUE time, int interval) { rb_raise(rb_eRangeError, "%f out of Time range", RFLOAT_VALUE(time)); } - t.tv_nsec = (time_t)(d * 1e9 + 0.5); + t.tv_nsec = (int)(time_t)(d * 1e9 + 0.5); } break; |