Changeset 33485 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
May 15, 2008, 6:25:16 AM (17 years ago)
Author:
Simon Hausmann
Message:

Simon Hausmann <[email protected]>

Fix compilation when compiling with MSVC and wchar_t support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h

    r31899 r33485  
    304304      }
    305305      for (int i = 0; i < srcLength; ++i)
    306         result[i] = QChar::toCaseFolded(src[i]);
     306        result[i] = QChar::toCaseFolded(ushort(src[i]));
    307307      return srcLength;
    308308    }
     
    376376      // handle surrogates correctly
    377377      for (int i = 0; i < len; ++i) {
    378           uint c1 = QChar::toCaseFolded(a[i]);
    379           uint c2 = QChar::toCaseFolded(b[i]);
     378          uint c1 = QChar::toCaseFolded(ushort(a[i]));
     379          uint c2 = QChar::toCaseFolded(ushort(b[i]));
    380380          if (c1 != c2)
    381381              return c1 - c2;
Note: See TracChangeset for help on using the changeset viewer.