AFNetworking/AFNetworking — pull request #578 by danimal (2012-10-15 21:20:02+00:00)
Title: Avoid warning on implicit 64 to 32 conversion in AFHTTPClient.m

When using the -Wshorten-64-to-32 flag making an NSRange from the AFHTTPBodyPart _phaseReadOffset ivar causes an implicit conversion warning (or error if using -Werror).

This is a simple cast to silence the warning. I'm not entirely confident this is the best way to do this since _phaseReadOffset could conceivably be larger than NSUIntegerMax.

I'll gladly revisit it and update the pull request if this fix is deemed unsatisfactory.