Skip to content

Commit e568b03

Browse files
bosilcajsquyres
andauthored
Update ompi/mca/coll/han/coll_han_component.c
Co-authored-by: Jeff Squyres <[email protected]>
1 parent 7e07678 commit e568b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/coll/han/coll_han_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ mca_coll_han_query_module_from_mca(mca_base_component_t* c,
187187
{
188188
char *module_name, *endptr = NULL;
189189

190-
int mod_id = sizeof(available_components) / sizeof(ompi_coll_han_components);
190+
int mod_id = COMPONENTS_COUNT;
191191
mod_id = (*module_id > (uint32_t)mod_id) ? mod_id : (int)*module_id; /* stay in range */
192192
mod_id = (mod_id < 0) ? 0 : mod_id; /* in range */
193193

0 commit comments

Comments
 (0)