diff mbox

opensm - use C99 transportable data type for pointer storage

Message ID 086F8B40ADA84EE7B6398F4761937836@amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Smith, Stan Nov. 10, 2009, 1:48 a.m. UTC
None
diff mbox

Patch

diff --git a/opensm/include/opensm/st.h b/opensm/include/opensm/st.h
index 30cc308..ad6c289 100644
--- a/opensm/include/opensm/st.h
+++ b/opensm/include/opensm/st.h
@@ -39,6 +39,7 @@ 
 #define ST_INCLUDED
 
 #include <stdlib.h>
+#include <inttypes.h>
 
 #ifdef __cplusplus
 #  define BEGIN_C_DECLS extern "C" {
@@ -49,7 +50,7 @@ 
 #endif				/* __cplusplus */
 
 BEGIN_C_DECLS
-#define st_ptr_t unsigned long
+#define st_ptr_t uintptr_t
 typedef st_ptr_t st_data_t;
 
 #define ST_DATA_T_DEFINED