Fix issues found by a static code scan
* bitwise operands of different size
* uninitialized member variables
Tested: Builds and runs without difference.
Change-Id: Ie59f0b9ede0bad1840a16a092f310e3fb37d23da
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/message.hpp b/message.hpp
index b486c77..7902b1e 100644
--- a/message.hpp
+++ b/message.hpp
@@ -168,7 +168,7 @@
{
uint32_t command = 0;
- command |= (static_cast<uint8_t>(payloadType) << 16);
+ command |= (static_cast<uint32_t>(payloadType) << 16);
if (payloadType == PayloadType::IPMI)
{
auto request =