Commit afa74b9b authored by darin's avatar darin

- fix build

        * kjs/string_object.cpp: (KJS::StringProtoFunc::callAsFunction):
        Change types.



git-svn-id: svn://svn.chromium.org/blink/trunk@18717 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent dce46426
2007-01-09 Darin Adler <darin@apple.com>
- fix build
* kjs/string_object.cpp: (KJS::StringProtoFunc::callAsFunction):
Change types.
2007-01-09 Darin Adler <darin@apple.com>
- fix build on platforms where Unicode::UChar is != uint16_t
......
......@@ -682,8 +682,8 @@ JSValue *StringProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, con
case ToLocaleLowerCase: { // FIXME: See http://www.unicode.org/Public/UNIDATA/SpecialCasing.txt for locale-sensitive mappings that aren't implemented.
u = s;
u.copyForWriting();
Unicode::UChar* dataPtr = reinterpret_cast<Unicode::UChar*>(u.rep()->data());
Unicode::UChar* destIfNeeded;
::UChar* dataPtr = reinterpret_cast<::UChar*>(u.rep()->data());
::UChar* destIfNeeded;
int len = Unicode::toLower(dataPtr, u.size(), destIfNeeded);
if (len >= 0)
......@@ -698,8 +698,8 @@ JSValue *StringProtoFunc::callAsFunction(ExecState *exec, JSObject *thisObj, con
case ToLocaleUpperCase: { // FIXME: See http://www.unicode.org/Public/UNIDATA/SpecialCasing.txt for locale-sensitive mappings that aren't implemented.
u = s;
u.copyForWriting();
Unicode::UChar* dataPtr = reinterpret_cast<Unicode::UChar*>(u.rep()->data());
Unicode::UChar* destIfNeeded;
::UChar* dataPtr = reinterpret_cast<::UChar*>(u.rep()->data());
::UChar* destIfNeeded;
int len = Unicode::toUpper(dataPtr, u.size(), destIfNeeded);
if (len >= 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment