Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a couple compiler warnings when compiling with -m32 #4787

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scotthunt
Copy link

No description provided.

@scotthunt scotthunt requested a review from a team as a code owner July 18, 2024 18:17
#else
#include <getopt.h>
#define PRIusz "zu"
Copy link
Author

Choose a reason for hiding this comment

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

Is there a better way to do this? It seems like there should be.

rd_snprintf(mcluster->id, sizeof(mcluster->id), "mockCluster%lx",
(intptr_t)mcluster >> 2);
rd_snprintf(mcluster->id, sizeof(mcluster->id), "mockCluster%"PRIxPTR,
(uintptr_t)mcluster >> 2);
Copy link
Author

Choose a reason for hiding this comment

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

%x expects unsigned, doesn't it?

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.

1 participant