Skip to content

Commit 763c0f9

Browse files
author
Julian LALU
committed
Fix u128 constexpr
1 parent e44aa9e commit 763c0f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

interface/core/i128/i128_intrinsics.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ namespace hud
413413
}
414414

415415
/** Right shift this and return the result */
416-
const i128_intrinsics operator>>(i32 amount) const noexcept
416+
constexpr const i128_intrinsics operator>>(i32 amount) const noexcept
417417
{
418418
return intrinsic_value_ >> amount;
419419
}
@@ -426,7 +426,7 @@ namespace hud
426426
}
427427

428428
/** Right shift this and return the result */
429-
const i128_intrinsics &operator>>=(i32 amount) noexcept
429+
constexpr const i128_intrinsics &operator>>=(i32 amount) noexcept
430430
{
431431
intrinsic_value_ >>= amount;
432432
return *this;
@@ -822,7 +822,7 @@ namespace hud
822822
}
823823

824824
/** Right shift this and return the result */
825-
const u128_intrinsics operator>>(i32 amount) const noexcept
825+
constexpr const u128_intrinsics operator>>(i32 amount) const noexcept
826826
{
827827
return intrinsic_value_ >> amount;
828828
}
@@ -835,7 +835,7 @@ namespace hud
835835
}
836836

837837
/** Right shift this and return the result */
838-
const u128_intrinsics &operator>>=(i32 amount) noexcept
838+
cosntexpr const u128_intrinsics &operator>>=(i32 amount) noexcept
839839
{
840840
intrinsic_value_ >>= amount;
841841
return *this;

0 commit comments

Comments
 (0)