From e5191937978b4f4f3874cda55ec35e8e7b60d6a4 Mon Sep 17 00:00:00 2001 From: John-Michael Baier Date: Sat, 9 May 2020 09:23:14 +0200 Subject: [PATCH] compiler warning --- src/lib/ebus/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ebus/device.cpp b/src/lib/ebus/device.cpp index 0037d95d..b95e0d0b 100755 --- a/src/lib/ebus/device.cpp +++ b/src/lib/ebus/device.cpp @@ -126,7 +126,7 @@ Device* Device::create(const char* name, bool checkDevice, bool readOnly, bool i return nullptr; // invalid protocol or missing port } 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) { free(in); return nullptr; // invalid port