Skip to content

Conversation

@nbennett320
Copy link
Collaborator

No description provided.

inline s8 signum(double val)
{
if(std::isnan(val)) throw std::invalid_argument("Invalid argument passed to util::signum");
if(val != val) throw std::invalid_argument("Invalid argument passed to util::signum");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

val != val will never be true, so this check should probably be deleted

running = false;
break;
case SDL_KEYDOWN: [[fallthrough]]
case SDL_KEYDOWN: [[fallthrough]];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the only [[fallthrough]] statement in the codebase. Is only this one broken on Mac?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, all the other fallthroughs I took a look at have semicolons after actually (though I didn't look at all of them).. not sure how it was compiling without it

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

Successfully merging this pull request may close these issues.

3 participants