mirror of
https://github.com/g-truc/glm.git
synced 2025-04-10 07:18:54 +00:00
Fixed int mod
This commit is contained in:
parent
11c26f9edb
commit
0d973b40a4
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -57,6 +57,7 @@ glm::mat4 camera(float Translate, glm::vec2 const& Rotate)
|
|||
|
||||
#### Fixes:
|
||||
- Fixed build problems due to printf and std::clock_t #778
|
||||
- Fixed int mod
|
||||
|
||||
### [GLM 0.9.9.0](https://github.com/g-truc/glm/releases/tag/0.9.9.0) - 2018-05-22
|
||||
#### Features:
|
||||
|
|
Loading…
Add table
Reference in a new issue