gcc 4.5 compatibility
This commit is contained in:
parent
dbe962ad5d
commit
95ccd9483b
|
@ -346,9 +346,9 @@ MathLib::biguint MathLib::toULongNumber(const std::string & str)
|
|||
|
||||
static unsigned int encodeMultiChar(const std::string& str)
|
||||
{
|
||||
unsigned int retval(str.front());
|
||||
for (std::string::const_iterator it=str.begin()+1; it!=str.end(); ++it) {
|
||||
retval = retval<<8 | *it;
|
||||
unsigned int retval = 0;
|
||||
for (std::string::const_iterator it=str.begin(); it!=str.end(); ++it) {
|
||||
retval = (retval << 8) | *it;
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
|
|
@ -5137,7 +5137,7 @@ void SymbolDatabase::setValueTypeInTokenList()
|
|||
if (tok->isNumber()) {
|
||||
if (MathLib::isFloat(tok->str())) {
|
||||
ValueType::Type type = ValueType::Type::DOUBLE;
|
||||
const char suffix = tok->str().back();
|
||||
const char suffix = tok->str()[tok->str().size() - 1];
|
||||
if (suffix == 'f' || suffix == 'F')
|
||||
type = ValueType::Type::FLOAT;
|
||||
else if (suffix == 'L' || suffix == 'l')
|
||||
|
|
Loading…
Reference in New Issue