diff options
| author | mmbob <mmbob+github@outlook.com> | 2013-04-22 17:05:10 (GMT) |
|---|---|---|
| committer | mmbob <mmbob+github@outlook.com> | 2013-04-22 17:05:10 (GMT) |
| commit | e166640cbbe6d990175e835ae9ff463d9bae34f1 (patch) | |
| tree | 57ee0a309cd8d70bdc8b227e393887d607550f68 /src/cat/TPTScriptInterface.cpp | |
| parent | 63050715ee54f1e8c39f69557d6d012bd6316d6b (diff) | |
| download | powder-e166640cbbe6d990175e835ae9ff463d9bae34f1.zip powder-e166640cbbe6d990175e835ae9ff463d9bae34f1.tar.gz | |
Fix reading hexadecimal in TPTScriptInterface
Instead of subtracting 'A', subtract 'a'
Diffstat (limited to 'src/cat/TPTScriptInterface.cpp')
| -rw-r--r-- | src/cat/TPTScriptInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp index 5d9a5e0..f8c6af6 100644 --- a/src/cat/TPTScriptInterface.cpp +++ b/src/cat/TPTScriptInterface.cpp @@ -137,7 +137,7 @@ int TPTScriptInterface::parseNumber(char * stringData) if(cc >= '0' && cc <= '9') currentNumber += cc - '0'; else if(cc >= 'a' && cc <= 'f') - currentNumber += (cc - 'A') + 10; + currentNumber += (cc - 'a') + 10; else if(cc >= 'A' && cc <= 'F') currentNumber += (cc - 'A') + 10; else |
