Explorar o código

Merge pull request #1100 from baldvin-kovacs/master

Fix implicit conversion compiler error in glm/gtc/random.inl #1100
Christophe %!s(int64=3) %!d(string=hai) anos
pai
achega
922f391824
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      glm/gtc/random.inl

+ 1 - 1
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<uint8>::max());
+				static_cast<uint8>(std::rand() % std::numeric_limits<uint8>::max()));
 		}
 	};