Correct compilation warnings for 'int' casts with correct types (#75)

This commit is contained in:
huguesdpdn
2024-09-08 17:01:10 +02:00
committed by GitHub
parent 6bf651cd31
commit 91f70382be
15 changed files with 42 additions and 37 deletions

View File

@@ -192,17 +192,16 @@ bool MbD::SymbolicParser::peekForTypeNoPush(const std::string& c)
std::string MbD::SymbolicParser::scanToken()
{
prevEnd = (int)source->tellg(); //Use int because of decrement
prevEnd--;
prevEnd = source->tellg() - std::streamoff(1);
while (std::isspace(hereChar) || isNextLineTag(hereChar)) {
hereChar = source->get();
}
if (hereChar == EOF) {
mark = prevEnd + 1;
mark = prevEnd + std::streamoff(1);;
tokenType = "end";
return token = "";
}
mark = (int)source->tellg();
mark = source->tellg();
if (std::isalpha(hereChar)) {
xLetter();
}