On 32 bit VC 2010, std::streamsize is 64 bit while size_t is 32 bit. Originally committed to SVN as r5151.