ObjFW  Check-in [44bd6d73dc]

Overview
Comment:Add a cast to satisfy -Wshorten-64-to-32.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 44bd6d73dc951324c22f06db24ead09c37a6e328ac2daee9176ba20c5fa7f692
User & Date: js on 2013-03-22 18:07:28
Other Links: manifest | tags
Context
2013-03-23
19:29
objfw-compile: Allow -F. check-in: 902d016a57 user: js tags: trunk
2013-03-22
18:07
Add a cast to satisfy -Wshorten-64-to-32. check-in: 44bd6d73dc user: js tags: trunk
2013-03-18
13:17
Make GCC happy again. check-in: 074f577275 user: js tags: trunk
Changes

Modified src/OFHTTPClient.m from [af7cb290e3] to [39b7903990].

109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
	    isEqual: @"chunked"];

	contentLength = [headers objectForKey: @"Content-Length"];
	if (contentLength != nil) {
		_hasContentLength = true;

		@try {
			_toRead = [contentLength decimalValue];
		} @catch (OFInvalidFormatException *e) {
			@throw [OFInvalidServerReplyException
			    exceptionWithClass: [self class]];
		}
	}
}








|







109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
	    isEqual: @"chunked"];

	contentLength = [headers objectForKey: @"Content-Length"];
	if (contentLength != nil) {
		_hasContentLength = true;

		@try {
			_toRead = (size_t)[contentLength decimalValue];
		} @catch (OFInvalidFormatException *e) {
			@throw [OFInvalidServerReplyException
			    exceptionWithClass: [self class]];
		}
	}
}