Procházet zdrojové kódy

Merge pull request #1100 from baldvin-kovacs/master

Fix implicit conversion compiler error in glm/gtc/random.inl #1100
Christophe před 3 roky
rodič
revize
922f391824
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()
 		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()));
 		}
 		}
 	};
 	};