Skip to content

Commit 6c913ba

Browse files
committed
and those
1 parent bc21ad6 commit 6c913ba

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

glm/detail/type_vec4.inl

+18-18
Original file line numberDiff line numberDiff line change
@@ -365,27 +365,27 @@ namespace detail
365365

366366
# if GLM_LANG & GLM_LANG_CXX14_FLAG || GLM_LANG & GLM_LANG_CXX17_FLAG
367367
# if GLM_LANG & GLM_LANG_CXX20_FLAG
368-
if (std::is_constant_evaluated())
369-
{
368+
if (std::is_constant_evaluated())
369+
{
370370
# endif
371-
switch (i)
372-
{
373-
default:
374-
case 0:
375-
return x;
376-
case 1:
377-
return y;
378-
case 2:
379-
return z;
380-
case 3:
381-
return w;
382-
}
383-
# if GLM_LANG & GLM_LANG_CXX20_FLAG
384-
}
385-
else
371+
switch (i)
386372
{
387-
return (&x)[i];
373+
default:
374+
case 0:
375+
return x;
376+
case 1:
377+
return y;
378+
case 2:
379+
return z;
380+
case 3:
381+
return w;
388382
}
383+
# if GLM_LANG & GLM_LANG_CXX20_FLAG
384+
}
385+
else
386+
{
387+
return (&x)[i];
388+
}
389389
# endif
390390
# else
391391
return (&x)[i];

0 commit comments

Comments
 (0)