Skip to content

Commit

Permalink
Fixing cast warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Ains committed Nov 22, 2019
1 parent 4987127 commit fb5cc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/example/mainEzspTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ int main(int argc, char **argv) {
clogE << "Invalid character '" << gpDevKeyStr[i+1] << "' at position " << i+2 << " in key " << gpDevKeyStr << "\n"; /* Note: 1st char is identified by a position=1 for readability */
exit(1);
}
argAsBytes.push_back(hiNibble << 4 | loNibble);
argAsBytes.push_back(static_cast<uint8_t>(hiNibble << 4) | loNibble);
}
//for (uint8_t loop=0; loop<argAsBytes.size(); loop++) { std::cerr << " " << std::hex << std::setw(2) << std::setfill('0') << unsigned(argAsBytes[loop]); }
//std::cerr << "\n";
Expand Down

0 comments on commit fb5cc33

Please sign in to comment.