Skip to content

Commit 248314a

Browse files
committed
Update BPPT.hpp
add cast to uint8_t
1 parent 520ad17 commit 248314a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/open_viii/graphics/BPPT.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,13 @@ struct BPPT
176176
(m_bpp8 ? RAW8_VALUE : 0U) + (m_bpp16 ? RAW16_VALUE : 0U)
177177
+ (m_color_lookup_table_present ? CLP_VALUE : 0U));
178178
}
179+
180+
[[nodiscard]] constexpr explicit
181+
operator std::uint8_t() const noexcept
182+
{
183+
return raw();
184+
}
185+
179186
constexpr BPPT() = default;
180187
explicit constexpr BPPT(std::uint8_t raw_in)
181188
: m_bpp8((raw_in & RAW8_VALUE) != 0), m_bpp16((raw_in & RAW16_VALUE) != 0),

0 commit comments

Comments
 (0)