From 4f9c7aedc735a01ceb7ae3fd857e948c8ace3e1d Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Fri, 12 Apr 2019 04:39:14 +0100 Subject: [PATCH] Fix incorrect call to `std::isdigit` This caused the Win32 Debug build to crash. See https://en.cppreference.com/w/cpp/string/byte/isdigit for more information. Refs #2867 --- src/prelexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prelexer.cpp b/src/prelexer.cpp index 2f05a896e..c8dbe34c1 100644 --- a/src/prelexer.cpp +++ b/src/prelexer.cpp @@ -1400,7 +1400,7 @@ namespace Sass { }*/ const char* H(const char* src) { - return std::isxdigit(*src) ? src+1 : 0; + return std::isxdigit(static_cast(*src)) ? src+1 : 0; } const char* W(const char* src) {