Commit f96fcbdf authored by thatcher's avatar thatcher

More elegant fix for the 64-bit build failure.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4faee3e9
......@@ -306,11 +306,8 @@ 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
long statusCode = [httpResponse statusCode];
snprintf(statusStr, sizeof(statusStr), "%ld", statusCode);
[theHeaders appendBytes:statusStr length:strlen(statusStr)];
[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