Skip to content

Commit 889f671

Browse files
[FixedBitset] Replace remaining unsigned longs with fixed-width types
1 parent a61a749 commit 889f671

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/fixed_containers/fixed_bitset.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ class FixedBitset
490490
return flip_unchecked(pos);
491491
}
492492

493-
[[nodiscard]] constexpr unsigned long to_ulong(
493+
[[nodiscard]] constexpr std::uint32_t to_ulong(
494494
const std_transition::source_location& loc =
495495
std_transition::source_location::current()) const
496496
{
@@ -503,7 +503,7 @@ class FixedBitset
503503
}
504504
else if constexpr (BITS_SMALL)
505505
{
506-
return static_cast<unsigned long>(data_at(0));
506+
return static_cast<std::uint32_t>(data_at(0));
507507
}
508508
else
509509
{
@@ -525,11 +525,11 @@ class FixedBitset
525525
CheckingType::invalid_argument("FixedBitSet to_ulong overflow error (2)", loc);
526526
}
527527

528-
return static_cast<unsigned long>(data_at(0));
528+
return static_cast<std::uint32_t>(data_at(0));
529529
}
530530
}
531531

532-
[[nodiscard]] constexpr unsigned long long to_ullong(
532+
[[nodiscard]] constexpr std::uint64_t to_ullong(
533533
const std_transition::source_location& loc =
534534
std_transition::source_location::current()) const
535535
{

0 commit comments

Comments
 (0)