File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -712,16 +712,11 @@ static ompi_datatype_t* __ompi_datatype_create_from_packed_description( void** p
712712
713713#if OPAL_ENABLE_HETEROGENEOUS_SUPPORT
714714 if (need_swap ) {
715- if (i_size == 8 ) {
716- size_t * arr = (size_t * )opal_count_array_ptr (array_of_length );
717- for (i = 0 ; i < number_of_length ; ++ i ) {
718- arr [i ] = opal_swap_bytes8 (arr [i ]);
719- }
720- } else {
721- int * arr = (int * )opal_count_array_ptr (array_of_length );
722- for (i = 0 ; i < number_of_length ; ++ i ) {
723- arr [i ] = opal_swap_bytes4 (arr [i ]);
724- }
715+ for (i = 0 ; i < number_of_ints ; ++ i ) {
716+ number_of_ints [i ] = opal_swap_bytes8 (number_of_ints [i ]);
717+ }
718+ for (i = 0 ; i < number_of_counts ; ++ i ) {
719+ array_of_counts [i ] = opal_swap_bytes4 (array_of_counts [i ]);
725720 }
726721 for (i = 0 ; i < number_of_disp ; ++ i ) {
727722#if SIZEOF_PTRDIFF_T == 4
You can’t perform that action at this time.
0 commit comments