mirror of
https://github.com/g-truc/glm.git
synced 2025-04-05 21:45:02 +00:00
Fixed warnings: cast and redefined defines
This commit is contained in:
parent
4989ad5a97
commit
fb220d3f84
2 changed files with 17 additions and 7 deletions
|
@ -7,11 +7,21 @@
|
|||
// File : test/core/core_func_swizzle.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define GLM_FORCE_ONLY_XYZW
|
||||
//#define GLM_FORCE_PURE
|
||||
#define GLM_MESSAGES
|
||||
#define GLM_SWIZZLE
|
||||
#define GLM_FORCE_CXX98
|
||||
#ifndef GLM_FORCE_ONLY_XYZW
|
||||
# define GLM_FORCE_ONLY_XYZW
|
||||
#endif
|
||||
//#ifndef GLM_FORCE_PURE
|
||||
//# define GLM_FORCE_PURE
|
||||
//#endif
|
||||
#ifndef GLM_MESSAGES
|
||||
# define GLM_MESSAGES
|
||||
#endif
|
||||
#ifndef GLM_SWIZZLE
|
||||
# define GLM_SWIZZLE
|
||||
#endif
|
||||
#ifndef GLM_FORCE_CXX98
|
||||
# define GLM_FORCE_CXX98
|
||||
#endif
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
int test_vec2_swizzle()
|
||||
|
|
|
@ -53,8 +53,8 @@ int test_nlz()
|
|||
{
|
||||
int Error = 0;
|
||||
|
||||
for(std::size_t i = 1; i < 33; ++i)
|
||||
Error += glm::nlz(i) == 31u - glm::findMSB(i) ? 0 : 1;
|
||||
for(glm::uint i = 1; i < glm::uint(33); ++i)
|
||||
Error += glm::nlz(i) == glm::uint(31u) - glm::findMSB(i) ? 0 : 1;
|
||||
//printf("%d, %d\n", glm::nlz(i), 31u - glm::findMSB(i));
|
||||
|
||||
return Error;
|
||||
|
|
Loading…
Add table
Reference in a new issue