Skip to content

Commit c2b0ba6

Browse files
compnerdktopley-apple
authored andcommitted
BlocksRuntime: match the ABI specification for LLP64
The Blocks ABI v1 defined the `size` and `reserved` fields as `unsigned long int` rather than `uintptr_t`. This breaks on LLP64 hosts where `uintptr_t` is larger than `unsigned long int`. Make this conform to the specification. Signed-off-by: Kim Topley <ktopley@apple.com>
1 parent 117ef86 commit c2b0ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BlocksRuntime/Block_private.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ enum {
3838

3939
#define BLOCK_DESCRIPTOR_1 1
4040
struct Block_descriptor_1 {
41-
uintptr_t reserved;
42-
uintptr_t size;
41+
unsigned long int reserved;
42+
unsigned long int size;
4343
};
4444

4545
#define BLOCK_DESCRIPTOR_2 1

0 commit comments

Comments
 (0)