From: christian.plesner.hansen@gmail.com Date: Fri, 5 Sep 2008 15:01:10 +0000 (+0000) Subject: Fixed test failure. X-Git-Tag: upstream/4.7.83~25451 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bce5ba577b0170d9c34cbb2c41abe8127c243846;p=platform%2Fupstream%2Fv8.git Fixed test failure. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@172 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc index e515f715a..776879e1c 100644 --- a/test/cctest/test-strings.cc +++ b/test/cctest/test-strings.cc @@ -351,7 +351,7 @@ TEST(Utf8Conversion) { // U+3045 -> E3 81 85 const uint16_t mixed_string[] = {0x02E4, 0x0064, 0x12E4, 0x0030, 0x3045}; // The characters we expect to be output - const int as_utf8[11] = {0xCB, 0xA4, 0x64, 0xE1, 0x8B, 0xA4, 0x30, + const unsigned char as_utf8[11] = {0xCB, 0xA4, 0x64, 0xE1, 0x8B, 0xA4, 0x30, 0xE3, 0x81, 0x85, 0x00}; // The number of bytes expected to be written for each length const int lengths[12] = {0, 0, 2, 3, 3, 3, 6, 7, 7, 7, 10, 11}; @@ -367,7 +367,7 @@ TEST(Utf8Conversion) { CHECK_EQ(lengths[i], written); // Check that the contents are correct for (int j = 0; j < lengths[i]; j++) - CHECK_EQ(as_utf8[j], buffer[j]); + CHECK_EQ(as_utf8[j], static_cast(buffer[j])); // Check that the rest of the buffer hasn't been touched for (int j = lengths[i]; j < 11; j++) CHECK_EQ(-1, buffer[j]);