Skip to content

Commit

Permalink
registers: Mark Register constructor as explicit
Browse files Browse the repository at this point in the history
Missed when removing the unused type info.
  • Loading branch information
lioncash committed Jan 10, 2024
1 parent 7d5f2e8 commit 0dff152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/biscuit/registers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Register {
friend constexpr auto operator<=>(Register, Register) = default;

protected:
constexpr Register(uint32_t index) noexcept
constexpr explicit Register(uint32_t index) noexcept
: m_index{index} {}

private:
Expand Down

0 comments on commit 0dff152

Please sign in to comment.