diff options
| author | David Carlier <devnexen@gmail.com> | 2018-06-25 16:10:20 +0000 |
|---|---|---|
| committer | David Carlier <devnexen@gmail.com> | 2018-06-25 16:10:20 +0000 |
| commit | 1c79e4e9592a7543f5ecf302c6d1e59dfea58671 (patch) | |
| tree | 1f3f13d478cbeb9e05855f2cd051ae6e5151df25 /lldb/source/Utility | |
| parent | 921f7a27cc4e92f0af53c2d454461e41ea3b6f4f (diff) | |
| download | bcm5719-llvm-1c79e4e9592a7543f5ecf302c6d1e59dfea58671.tar.gz bcm5719-llvm-1c79e4e9592a7543f5ecf302c6d1e59dfea58671.zip | |
[LLDB] Select helper sign comparison fix
The constant could be unsigned thus explicit cast to silent compilation warnings
Reviewers: aprantl
Reviewed By: aprantl
Differential Revision: https://reviews.llvm.org/D48540
llvm-svn: 335489
Diffstat (limited to 'lldb/source/Utility')
| -rw-r--r-- | lldb/source/Utility/SelectHelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/SelectHelper.cpp b/lldb/source/Utility/SelectHelper.cpp index 8fc3fad3486..0f6a9630950 100644 --- a/lldb/source/Utility/SelectHelper.cpp +++ b/lldb/source/Utility/SelectHelper.cpp @@ -109,8 +109,8 @@ lldb_private::Status SelectHelper::Select() { pair.second.PrepareForSelect(); const lldb::socket_t fd = pair.first; #if !defined(__APPLE__) && !defined(_MSC_VER) - lldbassert(fd < FD_SETSIZE); - if (fd >= FD_SETSIZE) { + lldbassert(fd < static_cast<int>(FD_SETSIZE)); + if (fd >= static_cast<int>(FD_SETSIZE)) { error.SetErrorStringWithFormat("%i is too large for select()", fd); return error; } |

