32-bit build fix.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 3 Sep 2011 17:13:58 +0000 (17:13 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 3 Sep 2011 17:13:58 +0000 (17:13 +0000)
* TestWebKitAPI/mac/PlatformUtilitiesMac.mm:
(TestWebKitAPI::Util::toSTD):

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

Tools/ChangeLog
Tools/TestWebKitAPI/mac/PlatformUtilitiesMac.mm

index 96eee20db269f8e4f31d8553a383f65ebc3221e8..7ab6246d61f9b84f67e68c258d1b4b1e3932e8c2 100644 (file)
@@ -1,3 +1,10 @@
+2011-09-03  Dan Bernstein  <mitz@apple.com>
+
+        32-bit build fix.
+
+        * TestWebKitAPI/mac/PlatformUtilitiesMac.mm:
+        (TestWebKitAPI::Util::toSTD):
+
 2011-09-03  Dan Bernstein  <mitz@apple.com>
 
         Move testStringByEvaluatingJavaScriptFromString() from DumpRenderTree to TestWebKitAPI
index c3869331cbba1d4edc0c6c1873520cca8ae489f5..d4cfe9fecc19bed49db0236d8ca867dfad6184b5 100644 (file)
@@ -79,7 +79,7 @@ std::string toSTD(NSString *string)
 {
     size_t bufferSize = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding];
     OwnArrayPtr<char> buffer = adoptArrayPtr(new char[bufferSize]);
-    size_t stringLength;
+    NSUInteger stringLength;
     [string getBytes:buffer.get() maxLength:bufferSize usedLength:&stringLength encoding:NSUTF8StringEncoding options:0 range:NSMakeRange(0, [string length]) remainingRange:0];
     return std::string(buffer.get(), stringLength);
 }