ObjFW  Diff

Differences From Artifact [69ccd8df63]:

To Artifact [3a4bb0d8ec]:


50
51
52
53
54
55
56
57



58
59
60
61
62
63
64
		@throw [OFInitializationFailedException exception];
#endif

	FD_ZERO(&_readFDs);
	FD_ZERO(&_writeFDs);
	FD_SET(_cancelFD[0], &_readFDs);

	_maxFD = _cancelFD[0];




	return self;
}

- (void)OF_addObjectForReading: (id)object
{
	int fd = [object fileDescriptorForReading];







|
>
>
>







50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
		@throw [OFInitializationFailedException exception];
#endif

	FD_ZERO(&_readFDs);
	FD_ZERO(&_writeFDs);
	FD_SET(_cancelFD[0], &_readFDs);

	if (_cancelFD[0] > INT_MAX)
		@throw [OFOutOfRangeException exception];

	_maxFD = (int)_cancelFD[0];

	return self;
}

- (void)OF_addObjectForReading: (id)object
{
	int fd = [object fileDescriptorForReading];