Skip to content

Commit c741952

Browse files
authored
Merge pull request #393 from cppalliance/div
Fix consteval fallthrough
2 parents 465721a + eef20fa commit c741952

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

include/boost/int128/detail/common_div.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ BOOST_INT128_HOST_DEVICE BOOST_INT128_FORCE_INLINE constexpr void one_word_div(c
447447
return;
448448
}
449449

450-
#else
450+
#endif
451451

452452
if (rhs <= UINT32_MAX)
453453
{
@@ -467,8 +467,6 @@ BOOST_INT128_HOST_DEVICE BOOST_INT128_FORCE_INLINE constexpr void one_word_div(c
467467
quotient = impl::from_words<T>(q);
468468
remainder = impl::from_words<T>(u);
469469
}
470-
471-
#endif
472470
}
473471

474472
template <typename T>

include/boost/int128/numeric.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#ifndef BOOST_INT128_BUILD_MODULE
1212

1313
#include <limits>
14+
#include <utility>
1415

1516
#endif
1617

0 commit comments

Comments
 (0)