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:
@@ -329,7 +329,7 @@ int wxHexToDec(const wxString& buf)
|
|||||||
else
|
else
|
||||||
secondDigit = buf.GetChar(1) - wxT('0');
|
secondDigit = buf.GetChar(1) - wxT('0');
|
||||||
|
|
||||||
return firstDigit * 16 + secondDigit;
|
return (firstDigit & 0xF) * 16 + (secondDigit & 0xF );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert decimal integer to 2-character hex string
|
// Convert decimal integer to 2-character hex string
|
||||||
|
Reference in New Issue
Block a user