X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftestclient%2Fmain.cpp;h=0a7a9be9874326691bbb2ea07142d78daee3963e;hb=988de7b930e56f4acc1d03afd5e01cea9b67754f;hp=d8daa8d7d8dc5691f89e486e1007958059fd9c48;hpb=ed21be2a64e3fe66dddffbd822c32f38e3b9192f;p=deb_libcec.git diff --git a/src/testclient/main.cpp b/src/testclient/main.cpp index d8daa8d..0a7a9be 100644 --- a/src/testclient/main.cpp +++ b/src/testclient/main.cpp @@ -371,7 +371,7 @@ int main (int argc, char *argv[]) { if (argc >= iArgPtr + 2) { - iHDMIPort= atoi(argv[iArgPtr + 1]); + iHDMIPort = (int8_t)atoi(argv[iArgPtr + 1]); cout << "using HDMI port '" << iHDMIPort << "'" << endl; ++iArgPtr; } @@ -561,7 +561,7 @@ int main (int argc, char *argv[]) string strvalue; if (GetWord(input, strvalue)) { - parser->SetHDMIPort(atoi(strvalue.c_str())); + parser->SetHDMIPort((uint8_t)atoi(strvalue.c_str())); } } else if (command == "pa") @@ -738,7 +738,7 @@ int main (int argc, char *argv[]) { cout << "listing active devices:" << endl; cec_logical_addresses addresses = parser->GetActiveDevices(); - for (unsigned iPtr = 0; iPtr < 16; iPtr++) + for (uint8_t iPtr = 0; iPtr < 16; iPtr++) if (addresses[iPtr]) cout << "logical address " << iPtr << endl; }