diff --git a/glm/gtc/random.inl b/glm/gtc/random.inl index 70485098..249ec9f9 100644 --- a/glm/gtc/random.inl +++ b/glm/gtc/random.inl @@ -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::max()); + static_cast(std::rand() % std::numeric_limits::max())); } };