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