[Scummvm-git-logs] scummvm master -> c61c49d5ab5842acf9491292b8988a73e3bb3a32

elasota noreply at scummvm.org
Mon Jul 10 23:01:33 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c61c49d5ab VCRUISE: Fix potentially incorrect hex number decoding


Commit: c61c49d5ab5842acf9491292b8988a73e3bb3a32
    https://github.com/scummvm/scummvm/commit/c61c49d5ab5842acf9491292b8988a73e3bb3a32
Author: elasota (ejlasota at gmail.com)
Date: 2023-07-10T18:35:27-04:00

Commit Message:
VCRUISE: Fix potentially incorrect hex number decoding

Changed paths:
    engines/vcruise/script.cpp


diff --git a/engines/vcruise/script.cpp b/engines/vcruise/script.cpp
index 389341d6c41..574dd4ce5c0 100644
--- a/engines/vcruise/script.cpp
+++ b/engines/vcruise/script.cpp
@@ -300,7 +300,7 @@ bool ScriptCompiler::parseHexNumber(const Common::String &token, uint start, uin
 		else if (c >= 'a' && c <= 'f')
 			num += static_cast<uint32>(c - 'a' + 0xa);
 		else if (c >= 'A' && c <= 'F')
-			num += static_cast<uint32>(c - 'a' + 0xa);
+			num += static_cast<uint32>(c - 'A' + 0xa);
 		else
 			return false;
 	}




More information about the Scummvm-git-logs mailing list