added lowercase functionality to wxHexToDec

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-05-10 16:06:38 +00:00
parent fb1bd1bdd3
commit 4b1f6faaa2

View File

@@ -329,7 +329,7 @@ int wxHexToDec(const wxString& buf)
else
secondDigit = buf.GetChar(1) - wxT('0');
return firstDigit * 16 + secondDigit;
return (firstDigit & 0xF) * 16 + (secondDigit & 0xF );
}
// Convert decimal integer to 2-character hex string