Ignore:
Timestamp:
Mar 10, 2008, 3:57:14 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by NOBODY.

Build fix for JSC on windows.

  • API/JSStringRefCF.cpp: (JSStringCreateWithCFString):
  • kjs/function.cpp: (KJS::decode):
  • kjs/nodes2string.cpp: (KJS::escapeStringForPrettyPrinting):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSStringRefCF.cpp

    r30942 r30944  
    4646        UniChar* buffer = static_cast<UniChar*>(fastMalloc(sizeof(UniChar) * length));
    4747        CFStringGetCharacters(string, CFRangeMake(0, length), buffer);
    48         rep = UString(buffer, length, false).rep()->ref();
     48        COMPILE_ASSERT(sizeof(UniChar) == sizeof(UChar), unichar_and_uchar_must_be_same_size);
     49        rep = UString(reinterpret_cast<UChar*>(buffer), length, false).rep()->ref();
    4950    }
    5051    return toRef(rep);
Note: See TracChangeset for help on using the changeset viewer.