Skip to content

Commit

Permalink
Don't mark sign inline as it's used externally
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Mar 16, 2022
1 parent 90f54a5 commit dd5010c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apricots/all.cpp
Expand Up @@ -18,7 +18,7 @@ int wrap(int n, int min, int max) { return ((((n - min) % (max - min)) + max - m

// Sign function

inline int sign(int n) { return (0 < n) - (n < 0); }
int sign(int n) { return (0 < n) - (n < 0); }

// Error message for switch statements that shouldn't ever get to default

Expand Down

0 comments on commit dd5010c

Please sign in to comment.