Borland C++: Fixed compiler errors

This commit is contained in:
Daniel Marjamäki 2009-10-03 09:34:38 +02:00
parent 70e236bc56
commit 0448753b13
2 changed files with 4 additions and 4 deletions

View File

@ -885,9 +885,9 @@ int CheckBufferOverrun::count(const std::string &input_string)
//std::cout << digits_string;
digits_string = digits_string.substr(1, digits_string.size());
if (check_for_i_d_x_f == 1) digits += std::max(abs(atoi(digits_string.c_str())), 1);
if (check_for_i_d_x_f == 1) digits += std::max(std::abs(std::atoi(digits_string.c_str())), 1);
else
digits += abs(atoi(digits_string.c_str()));
digits += std::abs(std::atoi(digits_string.c_str()));
digits_string = "";
check_for_i_d_x_f = 0;

4
src/tokenize.cpp Normal file → Executable file
View File

@ -1389,7 +1389,7 @@ void Tokenizer::simplifySizeof()
{
tok->deleteThis();
std::ostringstream ostr;
ostr << Token::getStrLength(tok) + 1;
ostr << (Token::getStrLength(tok) + 1);
tok->str(ostr.str());
}
@ -1399,7 +1399,7 @@ void Tokenizer::simplifySizeof()
tok->deleteThis();
tok->deleteNext();
std::ostringstream ostr;
ostr << Token::getStrLength(tok) + 1;
ostr << (Token::getStrLength(tok) + 1);
tok->str(ostr.str());
}
}