From 7e3ee1b284758c7b599ef1b73c490ddd49363138 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 19 Jan 2013 13:45:58 -0500 Subject: [PATCH] Portability - Fixed compiler error for new unit tests. --- test/utf8.t.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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");