This commit is contained in:
Christophe 2024-01-17 16:16:39 +01:00
parent bbfa2ff863
commit 96950f2e32
2 changed files with 15 additions and 1 deletions

View file

@ -1302,7 +1302,7 @@ namespace ldexp_
{
static int test()
{
int Error(0);
int Error = 0;
{
glm::vec1 A = glm::vec1(0.5);
@ -1344,6 +1344,11 @@ static int test_constexpr()
constexpr glm::vec2 const B = glm::abs(glm::vec2(1.0f));
constexpr glm::vec3 const C = glm::abs(glm::vec3(1.0f));
constexpr glm::vec4 const D = glm::abs(glm::vec4(1.0f));
static_assert(glm::all(glm::equal(A, glm::vec1(1.0f), glm::epsilon<float>())), "GLM: Failed constexpr");
static_assert(glm::all(glm::equal(B, glm::vec2(1.0f), glm::epsilon<float>())), "GLM: Failed constexpr");
static_assert(glm::all(glm::equal(C, glm::vec3(1.0f), glm::epsilon<float>())), "GLM: Failed constexpr");
static_assert(glm::all(glm::equal(D, glm::vec4(1.0f), glm::epsilon<float>())), "GLM: Failed constexpr");
#endif // GLM_HAS_CONSTEXPR
return 0;

View file

@ -622,6 +622,11 @@ namespace nextMultiple
namespace findNSB
{
#if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wpadded"
#endif
template<typename T>
struct type
{
@ -630,6 +635,10 @@ namespace findNSB
int Return;
};
#if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic pop
#endif
template <typename T>
static int run()
{