Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/string_ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

namespace datastax {

const StringRef::size_type StringRef::npos = -1;
const StringRef::size_type StringRef::npos = std::numeric_limits<StringRef::size_type>::max();

} // namespace datastax
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void set_thread_name(const String& thread_name) {
THREADNAME_INFO info;
info.dwType = 0x1000;
info.szName = thread_name.c_str();
info.dwThreadID = -1;
info.dwThreadID = (DWORD)-1;
info.dwFlags = 0;
#pragma warning(push)
#pragma warning(disable : 6320 6322)
Expand Down