Borland C++: Fixed compiler errors
This commit is contained in:
parent
70e236bc56
commit
0448753b13
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue