opnsense-ports/lang/rubinius/files/patch-vm_builtin_io.cpp
Franco Fichtner 2920441996 */*: sync with upstream
Taken from: FreeBSD
2015-09-17 08:37:32 +02:00

11 lines
421 B
C++

--- vm/builtin/io.cpp.orig
+++ vm/builtin/io.cpp
@@ -165,7 +165,7 @@
// 1024 is selec't limit. If we try to set a value higher, it corrupts
// memory. YAY FD_SET!
- if(descriptor >= FD_SETSIZE) return -2;
+ if(descriptor >= (int_fd_t)FD_SETSIZE) return -2;
highest = descriptor > highest ? descriptor : highest;
if(descriptor >= 0) FD_SET((int_fd_t)descriptor, set);