Trivial casting for compilation on windows

Signed-off-by: Yevgeny Kliteynik <[EMAIL PROTECTED]>
---
 osm/opensm/osm_subnet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/osm/opensm/osm_subnet.c b/osm/opensm/osm_subnet.c
index f2e909b..e4e69c0 100644
--- a/osm/opensm/osm_subnet.c
+++ b/osm/opensm/osm_subnet.c
@@ -562,7 +562,7 @@ __osm_subn_opts_unpack_uint16(
 
   if (!strcmp(p_req_key, p_key))
   {
-    val = strtoul(p_val_str, NULL, 0);
+    val = (uint16_t)strtoul(p_val_str, NULL, 0);
     if (val != *p_val)
     {
       char buff[128];
-- 
1.4.4.1.GIT

 

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to