Skip to content

Commit

Permalink
pool: Use uintptr_t for pool thread magic number
Browse files Browse the repository at this point in the history
This ensures that it's the same size as void *, so that casting to that
type won't trigger a diagnostic on any target. This fixes an armhf build
failure.

Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Aug 1, 2024
1 parent 05ae53f commit 92e9383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/threadpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static const struct sm_conf planner_states[PS_NR] = {
},
};

static const uint64_t pool_thread_magic = 0xf344e2;
static const uintptr_t pool_thread_magic = 0xf344e2;
static uv_key_t thread_identifier_key;

enum {
Expand Down

0 comments on commit 92e9383

Please sign in to comment.