File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ __BEGIN_DECLS
3838 * Note: static and global variables default to zero.
3939 */
4040DISPATCH_SWIFT3_UNAVAILABLE ("Use lazily initialized globals instead" )
41- typedef long dispatch_once_t ;
41+ typedef intptr_t dispatch_once_t ;
4242
4343#if defined(__x86_64__ ) || defined(__i386__ ) || defined(__s390x__ )
4444#define DISPATCH_ONCE_INLINE_FASTPATH 1
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ _dispatch_source_handler_free(dispatch_source_t ds, long kind)
300300
301301DISPATCH_ALWAYS_INLINE
302302static inline void
303- _dispatch_source_handler_replace (dispatch_source_t ds , long kind ,
303+ _dispatch_source_handler_replace (dispatch_source_t ds , uintptr_t kind ,
304304 dispatch_continuation_t dc )
305305{
306306 if (!dc -> dc_func ) {
@@ -321,14 +321,14 @@ _dispatch_source_set_handler_slow(void *context)
321321 dispatch_assert (dx_type (ds ) == DISPATCH_SOURCE_KEVENT_TYPE );
322322
323323 dispatch_continuation_t dc = context ;
324- long kind = ( long ) dc -> dc_data ;
324+ void * kind = dc -> dc_data ;
325325 dc -> dc_data = NULL ;
326- _dispatch_source_handler_replace (ds , kind , dc );
326+ _dispatch_source_handler_replace (ds , ( uintptr_t ) kind , dc );
327327}
328328
329329DISPATCH_NOINLINE
330330static void
331- _dispatch_source_set_handler (dispatch_source_t ds , long kind ,
331+ _dispatch_source_set_handler (dispatch_source_t ds , uintptr_t kind ,
332332 dispatch_continuation_t dc )
333333{
334334 dispatch_assert (dx_type (ds ) == DISPATCH_SOURCE_KEVENT_TYPE );
You can’t perform that action at this time.
0 commit comments