- Build fix.
authorkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Jan 2008 00:00:25 +0000 (00:00 +0000)
committerkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Jan 2008 00:00:25 +0000 (00:00 +0000)
        * kjs/ustring.cpp:
        * kjs/ustring.h:
        (KJS::UString::cost):

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

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/ustring.cpp
JavaScriptCore/kjs/ustring.h

index 6d24b2c..529e69d 100644 (file)
@@ -1,5 +1,13 @@
 2008-01-18  Kevin McCullough  <kmccullough@apple.com>
 
+        - Build fix.
+
+        * kjs/ustring.cpp:
+        * kjs/ustring.h:
+        (KJS::UString::cost):
+
+2008-01-18  Kevin McCullough  <kmccullough@apple.com>
+
         Reviewed by Geoff.
 
         - Correctly report cost of appended strings to trigger GC.
index f524987..b658a8d 100644 (file)
@@ -1282,6 +1282,4 @@ CString UString::UTF8String(bool strict) const
   return CString(buffer.data(), p - buffer.data());
 }
 
-
-
 } // namespace KJS
index fc956b4..5da4407 100644 (file)
@@ -458,7 +458,7 @@ inline size_t UString::cost() const
 
    size_t capacityDelta = capacity - reportedCost;
 
-   if (capacityDelta < static_cast<unsigned int>(minShareSize))
+   if (capacityDelta < static_cast<size_t>(minShareSize))
        return 0;
 
    m_rep->baseString->reportedCost = capacity;