Skip to content

Commit c2c0734

Browse files
committed
Fix issues
1 parent 40d6f16 commit c2c0734

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/yup_core/maths/yup_MathsFunctions.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -646,11 +646,9 @@ constexpr auto roundToInt (const FloatType value) noexcept
646646
{
647647
union
648648
{
649-
int asInt[2];
650649
double asDouble;
651-
} n;
652-
653-
n.asDouble = ((double) value) + 6755399441055744.0;
650+
int asInt[2];
651+
} n = { ((double) value) + 6755399441055744.0 };
654652

655653
#if YUP_BIG_ENDIAN
656654
return n.asInt[1];

0 commit comments

Comments
 (0)