diff --git a/glm/core/func_integer.inl b/glm/core/func_integer.inl index 3e4d56c8..bf6ac2e4 100644 --- a/glm/core/func_integer.inl +++ b/glm/core/func_integer.inl @@ -267,7 +267,7 @@ namespace glm ) { GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "'bitfieldExtract' only accept integer values"); - assert(Offset + Bits <= sizeof(genIUType)); + assert(Offset + Bits <= (sizeof(genIUType) << 3)); genIUType Result(0); if(std::numeric_limits::is_signed)