freebsd-ports/lang/rubinius/files/patch-vm_builtin_io.cpp
Mathieu Arnold 320514f1dd It seems some people keep adding $FreeBSD$ to patch files.
Patches must not be changed by the vcs, this includes the
svn:keyword expansion.  Set fbsd:nokeywords to a couple of patches.

With hat:	portmgr
Sponsored by:	Absolight
2015-09-16 13:03:45 +00: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);