[Lldb-commits] [lldb] r208789 - Replace SIZE_T_MAX with std::numeric_limits value in Section.cpp.
Todd Fiala
todd.fiala at gmail.com
Wed May 14 09:15:43 PDT 2014
Author: tfiala
Date: Wed May 14 11:15:43 2014
New Revision: 208789
URL: http://llvm.org/viewvc/llvm-project?rev=208789&view=rev
Log:
Replace SIZE_T_MAX with std::numeric_limits value in Section.cpp.
SIZE_T_MAX is not available on Linux.
Modified:
lldb/trunk/source/Core/Section.cpp
Modified: lldb/trunk/source/Core/Section.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Section.cpp?rev=208789&r1=208788&r2=208789&view=diff
==============================================================================
--- lldb/trunk/source/Core/Section.cpp (original)
+++ lldb/trunk/source/Core/Section.cpp Wed May 14 11:15:43 2014
@@ -13,6 +13,8 @@
#include "lldb/Target/SectionLoadList.h"
#include "lldb/Target/Target.h"
+#include <limits>
+
using namespace lldb;
using namespace lldb_private;
@@ -337,7 +339,8 @@ SectionList::AddSection (const lldb::Sec
m_sections.push_back(section_sp);
return section_index;
}
- return SIZE_T_MAX;
+
+ return std::numeric_limits<size_t>::max ();
}
// Warning, this can be slow as it's removing items from a std::vector.
More information about the lldb-commits
mailing list