Skip to content

Commit

Permalink
Fix flags for Windows
Browse files Browse the repository at this point in the history
Contributed by @stinodego
  • Loading branch information
aMarcireau committed Jul 8, 2024
1 parent bea69cd commit cc5918f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dtype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ impl<'py> PyArrayDescrMethods<'py> for Bound<'py, PyArrayDescr> {
}

fn flags(&self) -> u64 {
unsafe { PyDataType_FLAGS(self.py(), self.as_dtype_ptr()) }
unsafe { PyDataType_FLAGS(self.py(), self.as_dtype_ptr()) as _ }
}

fn ndim(&self) -> usize {
Expand Down

0 comments on commit cc5918f

Please sign in to comment.