diff options
author | Craig Tiller <ctiller@google.com> | 2015-12-11 13:11:52 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-12-11 13:11:52 -0800 |
commit | 46ab778aa0dbf5a328a2d35295af391d6f3a1401 (patch) | |
tree | ecf484f3df07d163b24605a3446521674867acb3 /src/ruby/ext | |
parent | e235388bce5cf0cc8f4ea387d7cb3f078f6ec1f6 (diff) | |
parent | 88086373db8c1d933f40d0275c4b9c8a8c9b9723 (diff) |
Merge pull request #4397 from jtattermusch/tv_sec_64bit
Make gpr_timespec platform agnostic.
Diffstat (limited to 'src/ruby/ext')
-rw-r--r-- | src/ruby/ext/grpc/rb_grpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ruby/ext/grpc/rb_grpc.c b/src/ruby/ext/grpc/rb_grpc.c index 7c7c2d3440..8318e12795 100644 --- a/src/ruby/ext/grpc/rb_grpc.c +++ b/src/ruby/ext/grpc/rb_grpc.c @@ -91,7 +91,7 @@ static ID id_tv_sec; static ID id_tv_nsec; /** - * grpc_rb_time_timeval creates a time_eval from a ruby time object. + * grpc_rb_time_timeval creates a timeval from a ruby time object. * * This func is copied from ruby source, MRI/source/time.c, which is published * under the same license as the ruby.h, on which the entire extensions is @@ -137,7 +137,7 @@ gpr_timespec grpc_rb_time_timeval(VALUE time, int interval) { d += 1; f -= 1; } - t.tv_sec = (time_t)f; + t.tv_sec = (gpr_int64)f; if (f != t.tv_sec) { rb_raise(rb_eRangeError, "%f out of Time range", RFLOAT_VALUE(time)); |