diff options
author | Alexander Tkachev | 2016-06-16 12:37:44 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | ceb86a0dd8421047fc3d067da2a4c7faccc2f782 (patch) | |
tree | 48f6ff94771908d252aeb6a3b8f68af29877799b /gui | |
parent | 434b740f4da7f77df902c0be6476cd360688c7ac (diff) | |
download | scummvm-rg350-ceb86a0dd8421047fc3d067da2a4c7faccc2f782.tar.gz scummvm-rg350-ceb86a0dd8421047fc3d067da2a4c7faccc2f782.tar.bz2 scummvm-rg350-ceb86a0dd8421047fc3d067da2a4c7faccc2f782.zip |
CLOUD: Clarify calculatedChecksum's initial value
Diffstat (limited to 'gui')
-rw-r--r-- | gui/storagewizarddialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/storagewizarddialog.cpp b/gui/storagewizarddialog.cpp index f93721fdc1..58ca095148 100644 --- a/gui/storagewizarddialog.cpp +++ b/gui/storagewizarddialog.cpp @@ -159,7 +159,7 @@ int StorageWizardDialog::decodeHashchar(char c) { bool StorageWizardDialog::correctChecksum(Common::String s) { if (s.size() == 0) return false; //no last char int providedChecksum = decodeHashchar(s.lastChar()); - int calculatedChecksum = 0x2A; + int calculatedChecksum = 0x2A; //any initial value would do, but it must equal to the one used on the page where these checksums were generated for (uint32 i = 0; i < s.size()-1; ++i) { calculatedChecksum = calculatedChecksum ^ s[i]; } |