Skip to content

Commit 4b8b9fd

Browse files
authored
Merge pull request #2868 from glebm/fix-isdigit
Fix incorrect call to `std::isxdigit`
2 parents 9e937b4 + 4f9c7ae commit 4b8b9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prelexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ namespace Sass {
14001400
}*/
14011401

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

14061406
const char* W(const char* src) {

0 commit comments

Comments
 (0)