Skip to content

Commit

Permalink
need to verify on other OS's tv_usec is an int type
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Fisher committed Sep 7, 2010
1 parent 93af5b3 commit 0b0f8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/curb_multi.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ VALUE ruby_curl_multi_perform(int argc, VALUE *argv, VALUE self) {
}

tv.tv_sec = 0; /* never wait longer than 1 second */
tv.tv_usec = timeout_milliseconds * 1000;
tv.tv_usec = (int)(timeout_milliseconds * 1000); /* XXX: int is the right type for OSX, what about linux? */

if (timeout_milliseconds == 0) { /* no delay */
rb_curl_multi_run( self, rbcm->handle, &(rbcm->running) );
Expand Down

1 comment on commit 0b0f8fd

@chittoor
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.