compiler warning

This commit is contained in:
David Rose 2004-03-04 23:45:43 +00:00
parent c179ad217d
commit e390fbddaf
1 changed files with 2 additions and 2 deletions

View File

@ -287,11 +287,11 @@ wordwrap_to(const wstring &text, float wordwrap_width,
// we can that does not leave the next line beginning with one
// of our forbidden characters.
size_t i = 0;
while (i < text_max_never_break && q - i > p &&
while ((int)i < text_max_never_break && q - i > p &&
text_never_break_before->find(text[q - i]) != wstring::npos) {
i++;
}
if (i < text_max_never_break) {
if ((int)i < text_max_never_break) {
q -= i;
}
}