[openib-general] [PATCH] Opensm - osm_mcast_mgr.c add type casting

Yael Kalka yael at mellanox.co.il
Wed Feb 8 00:30:22 PST 2006


Hi Hal,

The following patch adds a missing type casting in the return value of
the function osm_mcast_mgr_compute_max_hops.

Thanks,
Yael

Signed-off-by:  Yael Kalka <yael at mellanox.co.il>

Index: osm_mcast_mgr.c
===================================================================
--- osm_mcast_mgr.c     (revision 5307)
+++ osm_mcast_mgr.c     (working copy)
@@ -269,7 +269,7 @@ osm_mcast_mgr_compute_max_hops(
   }
 
   OSM_LOG_EXIT( p_mgr->p_log );
-  return( max_hops );
+  return(float)(max_hops);
 }
 
 /**********************************************************************




More information about the general mailing list