2007-10-26 Mark Rowe <mrowe@apple.com>
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Oct 2007 08:13:26 +0000 (08:13 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Oct 2007 08:13:26 +0000 (08:13 +0000)
        Windows build fix.

        * kjs/string_object.cpp:
        (KJS::StringObjectFuncImp::callAsFunction):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27096 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/string_object.cpp

index 87ba3105d21811bdbf1cc5f522ec2564d1dcef5a..3a0a67a417a5d08b4901c891d88d39d904711327 100644 (file)
@@ -1,3 +1,10 @@
+2007-10-26  Mark Rowe  <mrowe@apple.com>
+
+        Windows build fix.
+
+        * kjs/string_object.cpp:
+        (KJS::StringObjectFuncImp::callAsFunction):
+
 2007-10-25  Darin Adler  <darin@apple.com>
 
         Reviewed by Maciej.
index c76f894a77eb6034d289dcef5c8cdf0f5eeb2b66..cfe0a3b644b04762418d7169ad8395ca6ef460ac 100644 (file)
@@ -836,7 +836,7 @@ JSValue *StringObjectFuncImp::callAsFunction(ExecState *exec, JSObject* /*thisOb
     UChar *p = buf;
     ListIterator it = args.begin();
     while (it != args.end()) {
-      unsigned short u = it->toUInt32(exec);
+      unsigned short u = static_cast<unsigned short>(it->toUInt32(exec));
       *p++ = UChar(u);
       it++;
     }