gcc: fixed compiler warnings

This commit is contained in:
Daniel Marjamäki 2010-11-21 11:06:28 +01:00
parent 215cb5ac8d
commit ee333598fc
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ MathLib::bigint MathLib::toLongNumber(const std::string &str)
|| str.compare(0, 3, "-0x") == 0)
{
bigint ret = 0;
std::istringstream istr(str.substr((str[0]=='0') ? 2 : 3));
std::istringstream istr(str.substr((str[0]=='0') ? 2U : 3U));
istr >> std::hex >> ret;
return (str[0]=='-') ? -ret : ret;
}
@ -49,7 +49,7 @@ MathLib::bigint MathLib::toLongNumber(const std::string &str)
|| str.compare(0, 2, "-0") == 0)
{
bigint ret = 0;
std::istringstream istr(str.substr((str[0]=='0') ? 1 : 2));
std::istringstream istr(str.substr((str[0]=='0') ? 1U : 2U));
istr >> std::oct >> ret;
return (str[0]=='-') ? -ret : ret;
}