compiler warning
This commit is contained in:
@@ -126,7 +126,7 @@ Device* Device::create(const char* name, bool checkDevice, bool readOnly, bool i
|
|||||||
return nullptr; // invalid protocol or missing port
|
return nullptr; // invalid protocol or missing port
|
||||||
}
|
}
|
||||||
result_t result = RESULT_OK;
|
result_t result = RESULT_OK;
|
||||||
unsigned int port = parseInt(portpos+1, 10, 1, 65535, &result);
|
uint16_t port = (uint16_t)parseInt(portpos+1, 10, 1, 65535, &result);
|
||||||
if (result != RESULT_OK) {
|
if (result != RESULT_OK) {
|
||||||
free(in);
|
free(in);
|
||||||
return nullptr; // invalid port
|
return nullptr; // invalid port
|
||||||
|
|||||||
Reference in New Issue
Block a user