X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/20d8c319901b4bfb6dbd6d3070e41d3174df0a6f..5e0526df034ebceefc8e6ab813e32e38a9ac90ff:/src/msw/registry.cpp diff --git a/src/msw/registry.cpp b/src/msw/registry.cpp index 7d2a574f6c..70dd768c12 100644 --- a/src/msw/registry.cpp +++ b/src/msw/registry.cpp @@ -1166,7 +1166,7 @@ FormatAsHex(const void *data, if ( n ) value << _T(','); - value << wxString::Format(_T("%02x"), p[n]); + value << wxString::Format(_T("%02x"), (unsigned char)p[n]); } return value; @@ -1231,7 +1231,7 @@ wxString wxRegKey::FormatValue(const wxString& name) const if ( !QueryValue(name, &value) ) break; - rhs.Printf(_T("dword:%08x"), value); + rhs.Printf(_T("dword:%08x"), (unsigned int)value); } break;