fixed compiler warning

This commit is contained in:
john30
2015-10-24 09:06:43 +02:00
parent 803ac1e802
commit cf6b30d753
+1 -1
View File
@@ -85,7 +85,7 @@ public:
if (lastSep!=string::npos && firstDot==lastSep+1+2) { // potential destination address, matches "^ZZ." if (lastSep!=string::npos && firstDot==lastSep+1+2) { // potential destination address, matches "^ZZ."
result_t result; result_t result;
defaultDest = filename.substr(lastSep+1, 2); 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)) if (result!=RESULT_OK || !isValidAddress(zz))
defaultDest = ""; // invalid: not in hex or no master/slave/broadcast address defaultDest = ""; // invalid: not in hex or no master/slave/broadcast address
else { else {