1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed isalpha signed issue

This commit is contained in:
Brian Fiete 2021-02-15 10:21:00 -08:00
parent f2516b7ab8
commit 8d0f70588f

View file

@ -407,7 +407,7 @@ void BfPrinter::WriteIgnoredNode(BfAstNode* node)
}
else if (c == ' ')
{
if ((isalpha(src[i - 1])) && (isalpha(src[i + 1])))
if ((isalpha((uint8)src[i - 1])) && (isalpha((uint8)src[i + 1])))
spacedWordCount++;
}
else if ((c == '/') && (src[i - 1] == '/') && (hadNonSlash))