From 4b1f6faaa2c062d0797ae85c66ebe2c927946992 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 10 May 2001 16:06:38 +0000 Subject: [PATCH] added lowercase functionality to wxHexToDec git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/utilscmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 77de515356..f563515d18 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -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 -- 2.47.2