Skip to content

Commit

Permalink
Merge pull request #36 from cmumford/bit-const
Browse files Browse the repository at this point in the history
Fix build warning for implicit cast from int to bit
  • Loading branch information
codewitch-honey-crisis authored Sep 5, 2024
2 parents b398069 + a8e2da3 commit 51ec8a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gfx_font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ namespace gfx {
out_font->m_external_leading=order_guard(stream->template read<uint16_t>());
out_font->m_style = {0,0,0};
if(0<stream->getch()) {
out_font->m_style.italic = 1;
out_font->m_style.italic = true;
}
if(0<stream->getch()) {
out_font->m_style.underline = 1;
out_font->m_style.underline = true;
}
if(0<stream->getch()) {
out_font->m_style.strikeout = 1;
out_font->m_style.strikeout = true;
}
out_font->m_weight = order_guard(stream->template read<uint16_t>());
int gc = stream->getch();
Expand Down

0 comments on commit 51ec8a9

Please sign in to comment.