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

Convert integers to type T in quaternion mat3_cast() #542

Merged
merged 1 commit into from
Aug 17, 2016
Merged

Convert integers to type T in quaternion mat3_cast() #542

merged 1 commit into from
Aug 17, 2016

Conversation

patrikhuber
Copy link

@patrikhuber patrikhuber commented Aug 17, 2016

This fixes issues when int is not explicitly convertible to type T, and for example only has an operator* defined that takes two Ts but not a T and an int.

All the other functions in that file already use this syntax, so the missing ones here are most likely an oversight.

This fixes issues when the type T is not explicitly convertible to T, and for example only has an operator* defined that takes two Ts but not a T and an int.

All the other functions in that file already use this syntax, so the missing ones here are most likely an oversight.
@Groovounet
Copy link
Member

I agree, this is an oversight, thanks for contributing!
Christophe

@Groovounet Groovounet closed this Aug 17, 2016
@Groovounet Groovounet reopened this Aug 17, 2016
@Groovounet Groovounet merged commit c54714d into g-truc:master Aug 17, 2016
Groovounet added a commit that referenced this pull request Aug 17, 2016
@patrikhuber
Copy link
Author

Awesome, thanks! :-)
-Patrik

@patrikhuber patrikhuber deleted the fix-quaternion-typeconversion branch October 4, 2016 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants