Allow uppercase hex digits.

This commit is contained in:
tastytea 2019-01-02 11:18:43 +01:00
parent 04b7a3afd0
commit 86e865edfe
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.2)
project(identiconpp
VERSION 0.3.6
VERSION 0.3.7
LANGUAGES CXX
)

View File

@ -81,6 +81,10 @@ bool Identiconpp::not_hex(const char c)
{ // a-f
return false;
}
if (c >= 0x41 && c <= 0x46)
{ // A-F
return false;
}
if (c >= 0x30 && c <= 0x39)
{ // 0-9
return false;