Skip to content

Commit

Permalink
This comparison should make sense as function lookups are in one comp…
Browse files Browse the repository at this point in the history
… unit
  • Loading branch information
magnusuMET committed Feb 22, 2025
1 parent 99a33d8 commit e513b72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hdf5/src/hl/datatype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ impl Datatype {
let mut cdata = H5T_cdata_t::default();
h5lock!({
let noop = H5Tfind(*H5T_NATIVE_INT, *H5T_NATIVE_INT, &mut addr_of_mut!(cdata));
#[allow(unpredictable_function_pointer_comparisons)]
if H5Tfind(self.id(), dst.id(), &mut addr_of_mut!(cdata)) == noop {
Some(Conversion::NoOp)
} else {
Expand Down

0 comments on commit e513b72

Please sign in to comment.