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
38
38
* Note: static and global variables default to zero.
39
39
*/
40
40
DISPATCH_SWIFT3_UNAVAILABLE ("Use lazily initialized globals instead" )
41
- typedef long dispatch_once_t ;
41
+ typedef intptr_t dispatch_once_t ;
42
42
43
43
#if defined(__x86_64__ ) || defined(__i386__ ) || defined(__s390x__ )
44
44
#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)
300
300
301
301
DISPATCH_ALWAYS_INLINE
302
302
static 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 ,
304
304
dispatch_continuation_t dc )
305
305
{
306
306
if (!dc -> dc_func ) {
@@ -321,14 +321,14 @@ _dispatch_source_set_handler_slow(void *context)
321
321
dispatch_assert (dx_type (ds ) == DISPATCH_SOURCE_KEVENT_TYPE );
322
322
323
323
dispatch_continuation_t dc = context ;
324
- long kind = ( long ) dc -> dc_data ;
324
+ void * kind = dc -> dc_data ;
325
325
dc -> dc_data = NULL ;
326
- _dispatch_source_handler_replace (ds , kind , dc );
326
+ _dispatch_source_handler_replace (ds , ( uintptr_t ) kind , dc );
327
327
}
328
328
329
329
DISPATCH_NOINLINE
330
330
static void
331
- _dispatch_source_set_handler (dispatch_source_t ds , long kind ,
331
+ _dispatch_source_set_handler (dispatch_source_t ds , uintptr_t kind ,
332
332
dispatch_continuation_t dc )
333
333
{
334
334
dispatch_assert (dx_type (ds ) == DISPATCH_SOURCE_KEVENT_TYPE );
You can’t perform that action at this time.
0 commit comments