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

compatible for 32bit arm-linux #262

Open
walletiger opened this issue Dec 1, 2024 · 1 comment
Open

compatible for 32bit arm-linux #262

walletiger opened this issue Dec 1, 2024 · 1 comment

Comments

@walletiger
Copy link

error: 3rd/parallel-hashmap/parallel_hashmap/phmap_utils.h:324:16: error: right shift count >= width of type [-Werror=shift-count-overflow]
324 | k ^= k >> r;
| ~~^~~~

the type of k is size_t , r = 47 , in 32-bit linux k >> r , overflow , how to fix it !!

@greg7mdp
Copy link
Owner

greg7mdp commented Dec 1, 2024

Which compiler? This should be instantiated only when sizeof(size_t) == 8.

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

No branches or pull requests

2 participants