* TestWebKitAPI/mac/PlatformUtilitiesMac.mm:
(TestWebKitAPI::Util::toSTD):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@94490
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+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
{
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);
}