mirror of
https://github.com/g-truc/glm.git
synced 2025-04-13 16:50:38 +00:00
Fix incorrect parenthesis
In VC++ 2013 this error led to a runtime exception when using circularRand or linearRand while "Smaller Type Check" (/RTCc) was enabled.
This commit is contained in:
parent
f9535f2398
commit
0092c91f42
1 changed files with 10 additions and 10 deletions
|
@ -51,7 +51,7 @@ namespace detail
|
|||
GLM_FUNC_QUALIFIER static tvec1<uint8, P> call()
|
||||
{
|
||||
return tvec1<uint8, P>(
|
||||
std::rand()) % std::numeric_limits<uint8>::max();
|
||||
std::rand() % std::numeric_limits<uint8>::max());
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -61,8 +61,8 @@ namespace detail
|
|||
GLM_FUNC_QUALIFIER static tvec2<uint8, P> call()
|
||||
{
|
||||
return tvec2<uint8, P>(
|
||||
std::rand(),
|
||||
std::rand()) % std::numeric_limits<uint8>::max();
|
||||
std::rand() % std::numeric_limits<uint8>::max(),
|
||||
std::rand() % std::numeric_limits<uint8>::max());
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -72,9 +72,9 @@ namespace detail
|
|||
GLM_FUNC_QUALIFIER static tvec3<uint8, P> call()
|
||||
{
|
||||
return tvec3<uint8, P>(
|
||||
std::rand(),
|
||||
std::rand(),
|
||||
std::rand()) % std::numeric_limits<uint8>::max();
|
||||
std::rand() % std::numeric_limits<uint8>::max(),
|
||||
std::rand() % std::numeric_limits<uint8>::max(),
|
||||
std::rand() % std::numeric_limits<uint8>::max());
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -84,10 +84,10 @@ namespace detail
|
|||
GLM_FUNC_QUALIFIER static tvec4<uint8, P> call()
|
||||
{
|
||||
return tvec4<uint8, P>(
|
||||
std::rand(),
|
||||
std::rand(),
|
||||
std::rand(),
|
||||
std::rand()) % std::numeric_limits<uint8>::max();
|
||||
std::rand() % std::numeric_limits<uint8>::max(),
|
||||
std::rand() % std::numeric_limits<uint8>::max(),
|
||||
std::rand() % std::numeric_limits<uint8>::max(),
|
||||
std::rand() % std::numeric_limits<uint8>::max());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue