Merge pull request #1100 from baldvin-kovacs/master

Fix implicit conversion compiler error in glm/gtc/random.inl #1100
This commit is contained in:
Christophe 2022-04-20 12:32:14 +02:00 committed by GitHub
commit 922f391824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ namespace detail
GLM_FUNC_QUALIFIER static vec<1, uint8, P> call() GLM_FUNC_QUALIFIER static vec<1, uint8, P> call()
{ {
return vec<1, uint8, P>( return vec<1, uint8, P>(
std::rand() % std::numeric_limits<uint8>::max()); static_cast<uint8>(std::rand() % std::numeric_limits<uint8>::max()));
} }
}; };