mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 08:54:35 +00:00
Merge pull request #1100 from baldvin-kovacs/master
Fix implicit conversion compiler error in glm/gtc/random.inl #1100
This commit is contained in:
commit
922f391824
@ -22,7 +22,7 @@ namespace detail
|
||||
GLM_FUNC_QUALIFIER static vec<1, uint8, P> call()
|
||||
{
|
||||
return vec<1, uint8, P>(
|
||||
std::rand() % std::numeric_limits<uint8>::max());
|
||||
static_cast<uint8>(std::rand() % std::numeric_limits<uint8>::max()));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user