Skip to content

Commit

Permalink
fixed compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Oct 24, 2015
1 parent 803ac1e commit cf6b30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ebus/filereader.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class FileReader
if (lastSep!=string::npos && firstDot==lastSep+1+2) { // potential destination address, matches "^ZZ."
result_t result;
defaultDest = filename.substr(lastSep+1, 2);
int zz = parseInt(defaultDest.c_str(), 16, 0, 0xff, result, NULL);
unsigned char zz = (unsigned char)parseInt(defaultDest.c_str(), 16, 0, 0xff, result, NULL);
if (result!=RESULT_OK || !isValidAddress(zz))
defaultDest = ""; // invalid: not in hex or no master/slave/broadcast address
else {
Expand Down

0 comments on commit cf6b30d

Please sign in to comment.