[LLDB] Cast -1 (as invalid socket) to the socket type before comparing
authorMartin Storsjo <martin@martin.st>
Sat, 21 Sep 2019 19:10:15 +0000 (19:10 +0000)
committerMartin Storsjo <martin@martin.st>
Sat, 21 Sep 2019 19:10:15 +0000 (19:10 +0000)
commit5534a6750087ef4290c58238337b0dad29397f46
treea30108f25bd0c1fd9f3b066b6cc1d13324e31919
parented78dc8e4371b573e3daca3ee6d39231df218918
[LLDB] Cast -1 (as invalid socket) to the socket type before comparing

This silences warnings about comparison of integers between unsigned
long long (which is what the Windows SOCKET type is) and signed int
when building in MinGW mode.

Differential Revision: https://reviews.llvm.org/D67863

llvm-svn: 372486
lldb/source/Host/common/Socket.cpp
lldb/tools/lldb-vscode/lldb-vscode.cpp