[lldb] Use the NativeSock type instead of plain 'int'
authorMartin Storsjö <martin@martin.st>
Mon, 29 Aug 2022 09:45:00 +0000 (12:45 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 30 Aug 2022 07:07:44 +0000 (10:07 +0300)
commit118038e878cf7c169c74cdf31de019913775e881
treed89a0c22818d473e360e4bd93e246d029bf8f344
parent8e29e379b03541ae8dcfb9e797bfc3305f2a8756
[lldb] Use the NativeSock type instead of plain 'int'

This fixes a warning when building for Windows:

    ../tools/lldb/source/Host/common/TCPSocket.cpp:297:16: warning: comparison of integers of different signs: 'int' and 'const NativeSocket' (aka 'const unsigned long long') [-Wsign-compare]
          if (sock != kInvalidSocketValue) {
              ~~~~ ^  ~~~~~~~~~~~~~~~~~~~

Differential Revision: https://reviews.llvm.org/D132841
lldb/source/Host/common/TCPSocket.cpp