diff --git a/test/utf8.t.cpp b/test/utf8.t.cpp index 1dae6f251..487933548 100644 --- a/test/utf8.t.cpp +++ b/test/utf8.t.cpp @@ -46,12 +46,12 @@ int main (int argc, char** argv) // TODO int utf8_sequence (unsigned int); // unsigned int utf8_length (const std::string&); - t.is (utf8_length (ascii_text), 14, "ASCII utf8_length"); - t.is (utf8_length (utf8_text), 20, "UTF8 utf8_length"); + t.is ((int) utf8_length (ascii_text), 14, "ASCII utf8_length"); + t.is ((int) utf8_length (utf8_text), 20, "UTF8 utf8_length"); // unsigned int utf8_text_length (const std::string&); - t.is (utf8_text_length (ascii_text_color), 14, "ASCII utf8_text_length"); - t.is (utf8_text_length (utf8_text_color), 20, "UTF8 utf8_text_length"); + t.is ((int) utf8_text_length (ascii_text_color), 14, "ASCII utf8_text_length"); + t.is ((int) utf8_text_length (utf8_text_color), 20, "UTF8 utf8_text_length"); // const std::string utf8_substr (const std::string&, unsigned int, unsigned int length = 0); t.is (utf8_substr (ascii_text, 0, 2), "Th", "ASCII utf8_substr");