Fixed a buffer overflow.

This commit is contained in:
2021-09-03 07:59:36 -07:00
parent b61c78cec0
commit 4b55ec7b93
12 changed files with 104 additions and 103 deletions

View File

@@ -13,7 +13,7 @@
* @param b Number to modulo with. (a % b)
* @returns The modulo result.
*/
#define mathMod(a,b) (a%b+b)%b
#define mathMod(a,b) ((a)%(b)+(b))%(b)
/**
* Returns the modulous a result for b. Works for floating point numbers.