mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 02:34:35 +00:00
Use int instead of sizeType
This commit is contained in:
parent
752e8540c2
commit
f5dedea3d3
@ -258,12 +258,12 @@ namespace glm
|
|||||||
}
|
}
|
||||||
|
|
||||||
// bitfieldExtract
|
// bitfieldExtract
|
||||||
template <typename genIUType, typename sizeType>
|
template <typename genIUType>
|
||||||
GLM_FUNC_QUALIFIER genIUType bitfieldExtract
|
GLM_FUNC_QUALIFIER genIUType bitfieldExtract
|
||||||
(
|
(
|
||||||
genIUType const & Value,
|
genIUType const & Value,
|
||||||
sizeType const & Offset,
|
int const & Offset,
|
||||||
sizeType const & Bits
|
int const & Bits
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@ -280,7 +280,7 @@ namespace glm
|
|||||||
|
|
||||||
return Result | ((Mask & Value) >> Offset);
|
return Result | ((Mask & Value) >> Offset);
|
||||||
*/
|
*/
|
||||||
sizeType GenSize = sizeof(genIUType) << sizeType(3);
|
int GenSize = int(sizeof(genIUType)) << int(3);
|
||||||
|
|
||||||
assert(Offset + Bits <= GenSize);
|
assert(Offset + Bits <= GenSize);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user