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
Remove the min/max functions in CommonFuncs. #334
Conversation
| @@ -158,15 +158,11 @@ extern "C" { | |||
| #endif // M_IX86 | |||
| #endif // WIN32 ndef | |||
|
|
|||
| // Dolphin's min and max functions | |||
| // Undefine any min or max macros that might get defined | |||
| // (whether it be though Windows headers, or other libraries) | |||
| #undef min | |||
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
How about and then always explicitly use |
|
Can you please make these changes so this can be merged @lioncash ... |
|
I was planning to do so after work.
|
The algorithm header has the same functions.
Remove the min/max functions in CommonFuncs.
Another issue from dolphin-emu#334 with the casting moved from the output of min to it's inputs. This is a non-issue on 64 bit machines, but if dolphin is compiled on an OS with size_t == u32 (say ARM) then remainingSize could be truncated. Restored the casting to the original order before dolphin-emu#334.
Another issue from dolphin-emu#334 with the casting moved from the output of min to it's inputs. This is a non-issue on 64 bit machines, but if dolphin is compiled on an OS with size_t == u32 (say ARM) then remainingSize could be truncated. Restored the casting to the original order before dolphin-emu#334.
The algorithm header defines these, so it seems a little redundant to keep these.