Index: src/OFHTTPServer.m ================================================================== --- src/OFHTTPServer.m +++ src/OFHTTPServer.m @@ -511,11 +511,11 @@ (uintmax_t)contentLength > SIZE_MAX) @throw [OFOutOfRangeException exception]; buffer = [self allocMemoryWithSize: BUFFER_SIZE]; _body = [[OFMutableData alloc] init]; - _contentLength = contentLength; + _contentLength = (size_t)contentLength; [_socket asyncReadIntoBuffer: buffer length: BUFFER_SIZE target: self selector: @selector(socket: