Commit a51a74ed authored by Guillaume Sylvand's avatar Guillaume Sylvand
Browse files

The largest value handled with a given number of bits must include a '-1'

parent 89d39e32
......@@ -123,7 +123,7 @@ void RUNTIME_desc_create( MORSE_desc_t *desc )
morse_error("RUNTIME_desc_create", "MPI_TAG_UB not known by MPI");
}
while ( ((uintptr_t)(1UL<<tag_width) > (uint)(*tag_ub) )
while ( ((uintptr_t)(1UL<<tag_width - 1) > (uint)(*tag_ub) )
&& (tag_width >= TAG_WIDTH_MIN) ) {
tag_width--;
tag_sep--;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment