Skip to content

Commit

Permalink
Merge pull request g-truc#1100 from baldvin-kovacs/master
Browse files Browse the repository at this point in the history
Fix implicit conversion compiler error in glm/gtc/random.inl g-truc#1100
  • Loading branch information
christophe-lunarg committed Apr 20, 2022
2 parents df96951 + 63a2293 commit 922f391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glm/gtc/random.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
}
};

Expand Down

0 comments on commit 922f391

Please sign in to comment.