Changeset 33485

Show
Ignore:
Timestamp:
05/15/08 06:25:16 (6 months ago)
Author:
hausmann@webkit.org
Message:

Simon Hausmann <shausman@trolltech.com>

Fix compilation when compiling with MSVC and wchar_t support.

Location:
trunk/JavaScriptCore
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r33475 r33485  
     12008-05-15  Simon Hausmann  <shausman@trolltech.com> 
     2 
     3        Reviewed by Holger. 
     4 
     5        Fix compilation when compiling with MSVC and wchar_t support. 
     6 
     7        * wtf/unicode/qt4/UnicodeQt4.h: 
     8        (WTF::Unicode::foldCase): 
     9        (WTF::Unicode::umemcasecmp): 
     10 
    1112008-05-14  Kevin McCullough  <kmccullough@apple.com> 
    212 
  • 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;