[Lldb-commits] [PATCH] Use SIZE_MAX instead of SIZE_T_MAX for portability.

Stephen Wilson wilsons at start.ca
Tue Feb 15 20:05:35 PST 2011


diff --git a/include/lldb/Core/ArchSpec.h b/include/lldb/Core/ArchSpec.h
index 198722c..3bb14ac 100644
--- a/include/lldb/Core/ArchSpec.h
+++ b/include/lldb/Core/ArchSpec.h
@@ -12,6 +12,8 @@

 #if defined(__cplusplus)

+#include <stdint.h>
+
 #include "lldb/lldb-private.h"
 #include "llvm/ADT/Triple.h"

@@ -348,10 +350,10 @@ protected:
 private:

     void
-    MachOArchUpdated (size_t macho_idx = SIZE_T_MAX);
+    MachOArchUpdated (size_t macho_idx = SIZE_MAX);

     void
-    ELFArchUpdated (size_t idx = SIZE_T_MAX);
+    ELFArchUpdated (size_t idx = SIZE_MAX);
 };






More information about the lldb-commits mailing list