[Coverity] Overflowed return value (INTEGER_OVERFLOW)
authorPeter D. Barnes, Jr. <barnes26@llnl.gov>
Wed, 15 May 2013 10:10:26 -0400
changeset 9779 6fe81437a99e
parent 9778 45a56374ae2b
child 9780 19c20d900cc6
[Coverity] Overflowed return value (INTEGER_OVERFLOW)
src/network/utils/mac48-address.cc
--- a/src/network/utils/mac48-address.cc	Wed May 15 10:09:33 2013 -0400
+++ b/src/network/utils/mac48-address.cc	Wed May 15 10:10:26 2013 -0400
@@ -265,7 +265,7 @@
   NS_LOG_FUNCTION (v);
   std::istringstream iss;
   iss.str (v);
-  uint32_t retval;
+  uint8_t retval;
   iss >> std::hex >> retval >> std::dec;
   return retval;
 }