Make time_t to int conversion explicit on tv_nsec

This commit is contained in:
Marcin Wyszynski 2015-07-23 20:00:32 +02:00
parent ac91eddb60
commit ea0c18b3f2
1 changed files with 1 additions and 1 deletions

View File

@ -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;