Skip to content

Commit

Permalink
closure: make Block_descriptor_1 conform to the ABI
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
compnerd committed Jun 22, 2018
1 parent 50a7974 commit ca588f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions closure/Block_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ enum {

#define BLOCK_DESCRIPTOR_1 1
struct Block_descriptor_1 {
uintptr_t reserved;
uintptr_t size;
unsigned long int reserved;
unsigned long int size;
};

#define BLOCK_DESCRIPTOR_2 1
Expand Down

0 comments on commit ca588f7

Please sign in to comment.