From e390fbddafa849f7b947c62256e4e90a592dc3cb Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 4 Mar 2004 23:45:43 +0000 Subject: [PATCH] compiler warning --- panda/src/text/textFont.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/text/textFont.cxx b/panda/src/text/textFont.cxx index 88b77a6631..43027905e4 100644 --- a/panda/src/text/textFont.cxx +++ b/panda/src/text/textFont.cxx @@ -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; } }