Skip to content

Commit

Permalink
[ttf] fixed sign compare warning
Browse files Browse the repository at this point in the history
  • Loading branch information
harrand committed Sep 23, 2023
1 parent 9a483b3 commit d42337d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tz/io/ttf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ namespace tz::io
}

tz::assert(this->maxp.num_glyphs >= this->hhea.num_of_long_hor_metrics, "Not enough glyphs. Malformed TTF or logic error? Max glyphs = %u, Num long hor metrics = %u", static_cast<unsigned int>(this->maxp.num_glyphs), static_cast<unsigned int>(this->hhea.num_of_long_hor_metrics));
for(std::size_t i = 0; i < this->maxp.num_glyphs - this->hhea.num_of_long_hor_metrics; i++)
for(std::size_t i = 0; std::cmp_less(i, this->maxp.num_glyphs - this->hhea.num_of_long_hor_metrics); i++)
{
this->hmtx.left_side_bearings.push_back(ttf_read_value<std::int16_t>(ptr));
}
Expand Down

0 comments on commit d42337d

Please sign in to comment.