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

farmhash intentionally (?!?!) produces different results in debug builds than non-debug builds #124

Open
jherico opened this issue Apr 25, 2020 · 2 comments

Comments

@jherico
Copy link
Contributor

jherico commented Apr 25, 2020

static inline uint32_t debug_tweak32(uint32_t x) {

This drove me nuts when I was trying to debug a downstream library. Testing on Ubuntu vs Windows and Release vs Debug produced 4 different results (because the endian test was ALSO broken on Windows) and made me think I was taking crazy pills.

There's no commentary on why the code does this and it's part of the original commit for the file. This verges on gas-lighting. @uxcn what the actual hell?

@rurban
Copy link
Owner

rurban commented Apr 26, 2020

I think this problem deserves a notice. Like "Instable on DEBUG"

@uxcn
Copy link
Contributor

uxcn commented May 17, 2020 via email

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

3 participants