64-bit build fix.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2007 00:25:29 +0000 (00:25 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2007 00:25:29 +0000 (00:25 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20913 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/Plugins/WebBaseNetscapePluginStream.mm

index c322ae9..8081f3d 100644 (file)
@@ -306,7 +306,11 @@ static StreamMap& streams()
         
         [theHeaders appendBytes:"HTTP " length:5];
         char statusStr[10];
+#ifdef __LP64__
+        snprintf(statusStr, sizeof(statusStr), "%ld", [httpResponse statusCode]);
+#else
         snprintf(statusStr, sizeof(statusStr), "%d", [httpResponse statusCode]);
+#endif
         [theHeaders appendBytes:statusStr length:strlen(statusStr)];
         [theHeaders appendBytes:" OK\n" length:4];