Commit 2a919adf authored by thatcher's avatar thatcher

64-bit build fix.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ce2db776
...@@ -306,7 +306,11 @@ static StreamMap& streams() ...@@ -306,7 +306,11 @@ static StreamMap& streams()
[theHeaders appendBytes:"HTTP " length:5]; [theHeaders appendBytes:"HTTP " length:5];
char statusStr[10]; char statusStr[10];
#ifdef __LP64__
snprintf(statusStr, sizeof(statusStr), "%ld", [httpResponse statusCode]);
#else
snprintf(statusStr, sizeof(statusStr), "%d", [httpResponse statusCode]); snprintf(statusStr, sizeof(statusStr), "%d", [httpResponse statusCode]);
#endif
[theHeaders appendBytes:statusStr length:strlen(statusStr)]; [theHeaders appendBytes:statusStr length:strlen(statusStr)];
[theHeaders appendBytes:" OK\n" length:4]; [theHeaders appendBytes:" OK\n" length:4];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment