CFile: Don't cast potential negative values to unsigned int
Merge pull request #6008 from fritsch/vfs-helix

CFile: Don't cast potential negative values to unsigned int