Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/0xc/std/pointer.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ptrtag_t
__pointer_get_max_taggable(void)
{
size_t total = POINTER_TAG_BITS_HI + POINTER_TAG_BITS_LO;
return (ptrtag_t)((1 << total) - 1);
return (ptrtag_t)((1ULL << total) - 1);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ptrtag_t is a uint32_t, should we instead be doing (ptrtag_t)1?

}

tagptr_t
Expand Down