Skip to content

Commit

Permalink
Fix incorrect call to std::isdigit
Browse files Browse the repository at this point in the history
This caused the Win32 Debug build to crash.

See https://en.cppreference.com/w/cpp/string/byte/isdigit for more
information.

Refs sass#2867
  • Loading branch information
glebm committed Apr 12, 2019
1 parent 9e937b4 commit 4f9c7ae
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 4f9c7ae

Please sign in to comment.