瀏覽代碼

Merge branch '0.9.1' into 0.9.2

Christophe Riccio 14 年之前
父節點
當前提交
7e8942759e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      glm/core/func_integer.inl

+ 1 - 1
glm/core/func_integer.inl

@@ -267,7 +267,7 @@ namespace glm
 		)
 		{
 			GLM_STATIC_ASSERT(std::numeric_limits<genIUType>::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<genIUType>::is_signed)