From cf6b30d753bfd1e0ddf9a908e8570bd59cb38e24 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 24 Oct 2015 09:06:43 +0200 Subject: [PATCH] fixed compiler warning --- src/lib/ebus/filereader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ebus/filereader.h b/src/lib/ebus/filereader.h index 7bc5ec572..a8cb57dba 100644 --- a/src/lib/ebus/filereader.h +++ b/src/lib/ebus/filereader.h @@ -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 {