Skip to content

Commit 4f1fedb

Browse files
authored
Merge pull request #71 from glessard/LLP64
Change long to intptr_t for LLP64 platforms
2 parents 65777b9 + 70af903 commit 4f1fedb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/CAtomics/include/CAtomics.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,14 @@ CLANG_ATOMICS_POINTER_GENERATE(AtomicOptionalOpaquePointer, atomic_uintptr_t, st
293293
unionType tag_ptr; \
294294
struct { \
295295
pointerType nullability ptr; \
296-
size_t tag; \
296+
intptr_t tag; \
297297
}; \
298298
} swiftType;
299299

300300
#define CLANG_ATOMICS_TAGGED_POINTER_CREATE(swiftType, pointerType, nullability) \
301301
static __inline__ __attribute__((__always_inline__)) \
302302
SWIFT_NAME(swiftType.init(_:tag:)) \
303-
swiftType swiftType##Create(pointerType nullability p, size_t tag) \
303+
swiftType swiftType##Create(pointerType nullability p, intptr_t tag) \
304304
{ swiftType s; s.tag = tag; s.ptr = p; return s; }
305305

306306
#define CLANG_ATOMICS_TAGGED_POINTER_INCREMENT(swiftType, pointerType, nullability) \

0 commit comments

Comments
 (0)