Skip to content

Use a uintptr_t hop for casting pointers to ints#252

Merged
michael-grunder merged 1 commit intovalkey-io:mainfrom
michael-grunder:uintptrt-hop
Oct 17, 2025
Merged

Use a uintptr_t hop for casting pointers to ints#252
michael-grunder merged 1 commit intovalkey-io:mainfrom
michael-grunder:uintptrt-hop

Conversation

@michael-grunder
Copy link
Copy Markdown
Collaborator

  • Add uintptr_t hops when converting from pointers to ints.
  • Add a static assert to make sure uintptr_t is never larger than uint64_t (CHERI, maybe?)

Fixes #251

Fixes valkey-io#251

Signed-off-by: michael-grunder <michael.grunder@gmail.com>
Copy link
Copy Markdown
Collaborator

@bjosv bjosv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and I think this can be merged.
cc: @ruihong123

@michael-grunder michael-grunder merged commit c090c28 into valkey-io:main Oct 17, 2025
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RDMA: -Werror=pointer-to-int-cast on 32 bit

2 participants