Skip to content

Commit

Permalink
Merge pull request sass#2868 from glebm/fix-isdigit
Browse files Browse the repository at this point in the history
Fix incorrect call to `std::isxdigit`
  • Loading branch information
mgreter committed Apr 12, 2019
2 parents 9e937b4 + 4f9c7ae commit 4b8b9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prelexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ namespace Sass {
}*/

const char* H(const char* src) {
return std::isxdigit(*src) ? src+1 : 0;
return std::isxdigit(static_cast<unsigned char>(*src)) ? src+1 : 0;
}

const char* W(const char* src) {
Expand Down

0 comments on commit 4b8b9fd

Please sign in to comment.