[Coverity] Overflowed return value (INTEGER_OVERFLOW)

This commit is contained in:
Peter D. Barnes, Jr.
2013-05-15 10:10:26 -04:00
parent 51eb08677b
commit a8745360c4

View File

@@ -265,7 +265,7 @@ AsInt (std::string v)
NS_LOG_FUNCTION (v);
std::istringstream iss;
iss.str (v);
uint32_t retval;
uint8_t retval;
iss >> std::hex >> retval >> std::dec;
return retval;
}