summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
92d6649)
events in io_compare(), which returns an int. This can return the wrong
result for 64-bit executables.
#ifndef HAVE_MINGW
return a->fd - b->fd;
#else
#ifndef HAVE_MINGW
return a->fd - b->fd;
#else
- return a->event - b->event;
+ if(a->event < b->event) {
+ return -1;
+ }
+ if(a->event > b->event) {
+ return 1;
+ }
+ return 0;