Mentions légales du service

Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ void RUNTIME_desc_create( MORSE_desc_t *desc ) ...@@ -123,7 +123,7 @@ void RUNTIME_desc_create( MORSE_desc_t *desc )
morse_error("RUNTIME_desc_create", "MPI_TAG_UB not known by MPI"); 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_WIDTH_MIN) ) {
tag_width--; tag_width--;
tag_sep--; tag_sep--;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment