diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:09:23 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:09:23 +0000 |
commit | f73363f1dd94996356cefbf24388f561891acf0b (patch) | |
tree | e3c31248bdb36eaec5fd833490d4278162dba2a0 /source/Utility/SelectHelper.cpp | |
parent | 160ee69dd7ae18978f4068116777639ea98dc951 (diff) |
Notes
Diffstat (limited to 'source/Utility/SelectHelper.cpp')
-rw-r--r-- | source/Utility/SelectHelper.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/Utility/SelectHelper.cpp b/source/Utility/SelectHelper.cpp index 200b2ae42759..0f6a96309504 100644 --- a/source/Utility/SelectHelper.cpp +++ b/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; } @@ -236,8 +236,9 @@ lldb_private::Status SelectHelper::Select() { error.SetErrorString("timed out"); return error; } else { - // One or more descriptors were set, update the FDInfo::select_is_set mask - // so users can ask the SelectHelper class so clients can call one of: + // One or more descriptors were set, update the FDInfo::select_is_set + // mask so users can ask the SelectHelper class so clients can call one + // of: for (auto &pair : m_fd_map) { const int fd = pair.first; |