diff options
authorKai Koehne <>2019-04-05 15:22:08 +0200
committerKai Koehne <>2019-04-08 07:40:01 +0000
commit6257ca589f435ea9b4f73067098ab54bbc873faf (patch)
parenta54b8af5c73284119686b762cf4bbbaa2e0dd1cf (diff)
Fix clang-cl errors about narrowing conversions
Force value to be a DWORD (unsigned long) instead of HRESULT (signed long). Fixes bluetoothsocket_winrt.cpp(770,10): error: case value evaluates to 2147952460, which cannot be narrowed to type 'long' [-Wc++11-narrowing] Change-Id: I4f1eb75807d4783b835094ad1b33e56f601ffb39 Reviewed-by: Alex Blasche <> Reviewed-by: Oliver Wolff <>
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothsocket_winrt.cpp b/src/bluetooth/qbluetoothsocket_winrt.cpp
index 79dccdd6..a4af8f72 100644
--- a/src/bluetooth/qbluetoothsocket_winrt.cpp
+++ b/src/bluetooth/qbluetoothsocket_winrt.cpp
@@ -765,7 +765,7 @@ HRESULT QBluetoothSocketPrivateWinRT::handleConnectOpFinished(ABI::Windows::Foun
return S_OK;
- HRESULT hr = action->GetResults();
+ DWORD hr = action->GetResults();
switch (hr) {
case 0x8007274c: // A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
errorString = QBluetoothSocket::tr("Connection timed out");