Skip to content

Commit

Permalink
Fix a narrowing conversion (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
benson31 committed Jul 28, 2023
1 parent 476e8cd commit 3b86092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/relay/conduit_relay_io_hdf5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ hdf5_dtype_to_conduit_dtype(hid_t hdf5_dtype_id,
index_t num_elems,
const std::string& ref_path)
{
hsize_t num_elems_array[1] = { num_elems };
hsize_t num_elems_array[1] = { static_cast<hsize_t>(num_elems) };
return hdf5_dtype_to_conduit_dtype(hdf5_dtype_id, num_elems_array, 1, ref_path);
}

Expand Down

0 comments on commit 3b86092

Please sign in to comment.