Changeset 27756 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Nov 13, 2007, 11:54:40 AM (18 years ago)
Author:
[email protected]
Message:

Windows build fix.

  • bindings/c/c_utility.cpp: (KJS::Bindings::convertUTF8ToUTF16):
  • kjs/ustring.cpp: (KJS::UString::UTF8String):
  • wtf/unicode/UTF8.cpp: (WTF::Unicode::ConvertUTF8ToUTF16):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/unicode/UTF8.cpp

    r27746 r27756  
    118118// (I.e., one byte sequence, two byte... etc.). Remember that sequencs
    119119// for *legal* UTF-8 will be 4 or fewer bytes total.
    120 static const char firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
     120static const unsigned char firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
    121121
    122122ConversionResult ConvertUTF16ToUTF8(
     
    240240    while (source < sourceEnd) {
    241241        UChar32 ch = 0;
    242         unsigned short extraBytesToRead = UTF8SequenceLength(*source) - 1;
     242        int extraBytesToRead = UTF8SequenceLength(*source) - 1;
    243243        if (source + extraBytesToRead >= sourceEnd) {
    244244            result = sourceExhausted;
Note: See TracChangeset for help on using the changeset viewer.