Skip to content

Commit fceeca1

Browse files
committed
[[ Cleanup ]] MCField::resolvechars(): Avoid signed/unsigned comparisons.
1 parent 924fb3b commit fceeca1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

engine/src/field.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2966,7 +2966,7 @@ void MCField::resolvechars(uint32_t p_part_id, findex_t& x_si, findex_t& x_ei, f
29662966
t_top_para = t_pg = resolveparagraphs(p_part_id);
29672967

29682968
// Loop through the paragraphs until we've gone x_si code units in
2969-
uindex_t t_index = 0;
2969+
findex_t t_index = 0;
29702970
while ((t_index + t_pg->gettextlengthcr()) < x_si)
29712971
{
29722972
t_index += t_pg->gettextlengthcr();
@@ -2983,7 +2983,7 @@ void MCField::resolvechars(uint32_t p_part_id, findex_t& x_si, findex_t& x_ei, f
29832983
p_start += t_char_range.length;
29842984

29852985
// Loop until we get to the starting paragraph (or reach the end of the field)
2986-
uindex_t t_pg_char_length = t_pg -> gettextlengthcr(true);
2986+
findex_t t_pg_char_length = t_pg -> gettextlengthcr(true);
29872987
while (t_pg_char_length <= p_start)
29882988
{
29892989
// Move to the next paragraph

0 commit comments

Comments
 (0)