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

Call to 'abs' is ambiguous. Hash.h #79

Open
Nestor18 opened this issue Jan 25, 2023 · 5 comments
Open

Call to 'abs' is ambiguous. Hash.h #79

Nestor18 opened this issue Jan 25, 2023 · 5 comments

Comments

@Nestor18
Copy link

I have downloaded your Glitter program to run openGL on my macOS 10.13.6 using Xcode version 10.1 but I get the above error message in this line of code:

hash ^= abs(data[sizeof(uint16_t)]) << 18;

I would appreciate any suggestions for a fix.

Regards.

@Polytonic
Copy link
Owner

Hi! Can you provide a more detailed stack trace or line number in which this code occurs? I’m pretty sure your issue is with one of the dependencies included. I’d suggest following up with the appropriate project on GitHub.

@Nestor18
Copy link
Author

Nestor18 commented Jan 27, 2023 via email

@Nestor18
Copy link
Author

Thank you, I tried to download a stack trace with no success, but the line number is 99 if that is helpful.
It belongs in the assimp 1 library with a call to hash.h.
I've copied where it lives in a switch structure.
/* Handle end cases */
switch (rem) {
case 3: hash += get16bits (data);
hash ^= hash << 16;
hash ^= abs(data[sizeof(uint16_t)]) << 18;
hash += hash >> 11;
break;
case 2: hash += get16bits (data);
hash ^= hash << 11;
hash += hash >> 17;
break;
case 1: hash += *data;
hash ^= hash << 10;
hash += hash >> 1;
}

@Polytonic
Copy link
Owner

I think you’ll want to take this up with the assimp maintainers then.

@Nestor18
Copy link
Author

Nestor18 commented Jan 27, 2023 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

2 participants