mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Fixed int mod
This commit is contained in:
parent
11c26f9edb
commit
0d973b40a4
@ -66,7 +66,7 @@ namespace detail
|
||||
// mod
|
||||
GLM_FUNC_QUALIFIER int mod(int x, int y)
|
||||
{
|
||||
return x - y * (x / y);
|
||||
return ((x % y) + y) % y;
|
||||
}
|
||||
|
||||
// factorial (!12 max, integer only)
|
||||
|
Loading…
Reference in New Issue
Block a user