@@ -3798,7 +3798,7 @@ - (void)setupSendTimerWithTimeout:(NSTimeInterval)timeout
3798
3798
dispatch_release (theSendTimer);
3799
3799
});
3800
3800
3801
- dispatch_time_t tt = dispatch_time (DISPATCH_TIME_NOW, (timeout * NSEC_PER_SEC));
3801
+ dispatch_time_t tt = dispatch_time (DISPATCH_TIME_NOW, (int64_t )( timeout * NSEC_PER_SEC));
3802
3802
3803
3803
dispatch_source_set_timer (sendTimer, tt, DISPATCH_TIME_FOREVER, 0 );
3804
3804
dispatch_resume (sendTimer);
@@ -4006,12 +4006,12 @@ - (void)doReceive
4006
4006
4007
4007
if (result > 0 )
4008
4008
{
4009
- if (result >= socket4FDBytesAvailable)
4009
+ if (( size_t ) result >= socket4FDBytesAvailable)
4010
4010
socket4FDBytesAvailable = 0 ;
4011
4011
else
4012
4012
socket4FDBytesAvailable -= result;
4013
4013
4014
- if (result != bufSize) {
4014
+ if (( size_t ) result != bufSize) {
4015
4015
buf = realloc (buf, result);
4016
4016
}
4017
4017
@@ -4040,12 +4040,12 @@ - (void)doReceive
4040
4040
4041
4041
if (result > 0 )
4042
4042
{
4043
- if (result >= socket6FDBytesAvailable)
4043
+ if (( size_t ) result >= socket6FDBytesAvailable)
4044
4044
socket6FDBytesAvailable = 0 ;
4045
4045
else
4046
4046
socket6FDBytesAvailable -= result;
4047
4047
4048
- if (result != bufSize) {
4048
+ if (( size_t ) result != bufSize) {
4049
4049
buf = realloc (buf, result);
4050
4050
}
4051
4051
0 commit comments