Checksum whitespace

I'm getting a compile warning treated as an error here:
conversion from 'std::streamsize' to 'unsigned int', possible loss of data