Skip to content

Commit ca588f7

Browse files
committed
closure: make Block_descriptor_1 conform to the ABI
The Blocks ABI v1 used `unsigned long int` for the `size` and `reserved` fields. On LLP64 targets (e.g. Windows x86_64), `uintptr_t` is larger than `unsigned long int`. Adjust the types to make the definition conform to the ABI specification.
1 parent 50a7974 commit ca588f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

closure/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)