@@ -67,13 +67,13 @@ PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, stru
67
67
if (handles [n_handles ] == INVALID_HANDLE_VALUE ) {
68
68
/* socket */
69
69
if (SAFE_FD_ISSET (i , rfds )) {
70
- FD_SET ((uint )i , & sock_read );
70
+ FD_SET ((uint32_t )i , & sock_read );
71
71
}
72
72
if (SAFE_FD_ISSET (i , wfds )) {
73
- FD_SET ((uint )i , & sock_write );
73
+ FD_SET ((uint32_t )i , & sock_write );
74
74
}
75
75
if (SAFE_FD_ISSET (i , efds )) {
76
- FD_SET ((uint )i , & sock_except );
76
+ FD_SET ((uint32_t )i , & sock_except );
77
77
}
78
78
if (i > sock_max_fd ) {
79
79
sock_max_fd = i ;
@@ -117,7 +117,7 @@ PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, stru
117
117
/* check handles */
118
118
DWORD wret ;
119
119
120
- wret = MsgWaitForMultipleObjects (n_handles , handles , FALSE, retcode > 0 ? 0 : 100 , QS_ALLEVENTS );
120
+ wret = WaitForMultipleObjects (n_handles , handles , FALSE, retcode > 0 ? 0 : 100 );
121
121
122
122
if (wret == WAIT_TIMEOUT ) {
123
123
/* set retcode to 0; this is the default.
@@ -136,13 +136,13 @@ PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, stru
136
136
for (i = 0 ; i < n_handles ; i ++ ) {
137
137
if (WAIT_OBJECT_0 == WaitForSingleObject (handles [i ], 0 )) {
138
138
if (SAFE_FD_ISSET (handle_slot_to_fd [i ], rfds )) {
139
- FD_SET ((uint )handle_slot_to_fd [i ], & aread );
139
+ FD_SET ((uint32_t )handle_slot_to_fd [i ], & aread );
140
140
}
141
141
if (SAFE_FD_ISSET (handle_slot_to_fd [i ], wfds )) {
142
- FD_SET ((uint )handle_slot_to_fd [i ], & awrite );
142
+ FD_SET ((uint32_t )handle_slot_to_fd [i ], & awrite );
143
143
}
144
144
if (SAFE_FD_ISSET (handle_slot_to_fd [i ], efds )) {
145
- FD_SET ((uint )handle_slot_to_fd [i ], & aexcept );
145
+ FD_SET ((uint32_t )handle_slot_to_fd [i ], & aexcept );
146
146
}
147
147
retcode ++ ;
148
148
}
0 commit comments