add proper typcasts to intptr_t to avoid warnings on 32bit systems.
This commit was SVN r30229.
Этот коммит содержится в:
родитель
212e07a1e9
Коммит
217e61e345
@ -588,7 +588,7 @@
|
||||
|
||||
fh->f_num_of_io_entries = 0;
|
||||
fh->f_io_array[fh->f_num_of_io_entries].offset =
|
||||
(IOVBASE_TYPE *)file_offsets_for_agg[sorted_file_offsets[0]].offset;
|
||||
(IOVBASE_TYPE *)(intptr_t)file_offsets_for_agg[sorted_file_offsets[0]].offset;
|
||||
fh->f_io_array[fh->f_num_of_io_entries].length =
|
||||
file_offsets_for_agg[sorted_file_offsets[0]].length;
|
||||
fh->f_io_array[fh->f_num_of_io_entries].memory_address =
|
||||
@ -603,7 +603,7 @@
|
||||
}
|
||||
else{
|
||||
fh->f_io_array[fh->f_num_of_io_entries].offset =
|
||||
(IOVBASE_TYPE *)file_offsets_for_agg[sorted_file_offsets[i]].offset;
|
||||
(IOVBASE_TYPE *)(intptr_t)file_offsets_for_agg[sorted_file_offsets[i]].offset;
|
||||
fh->f_io_array[fh->f_num_of_io_entries].length =
|
||||
file_offsets_for_agg[sorted_file_offsets[i]].length;
|
||||
fh->f_io_array[fh->f_num_of_io_entries].memory_address =
|
||||
|
@ -246,7 +246,7 @@ int ompi_io_ompio_generate_current_file_view (mca_io_ompio_file_t *fh,
|
||||
}
|
||||
for (i=0;i<k;i++){
|
||||
per_process[i].offset =
|
||||
(OMPI_MPI_OFFSET_TYPE)iov[i].iov_base;
|
||||
(OMPI_MPI_OFFSET_TYPE)(intptr_t)iov[i].iov_base;
|
||||
per_process[i].length =
|
||||
(MPI_Aint)iov[i].iov_len;
|
||||
per_process[i].process_id = fh->f_rank;
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user