Skip to content

Commit

Permalink
fix narrowing enum on extended_number
Browse files Browse the repository at this point in the history
Signed-off-by: Elazar Gershuni <[email protected]>
  • Loading branch information
elazarg committed Sep 30, 2024
1 parent 862b2cf commit 4406ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crab_utils/num_extended.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class extended_number final {

template <is_enum T>
T narrow() const {
return static_cast<T>(narrow<std::underlying_type_t<T>>(_n));
return static_cast<T>(narrow<std::underlying_type_t<T>>());
}

extended_number& operator=(extended_number&&) noexcept = default;
Expand Down

0 comments on commit 4406ea6

Please sign in to comment.