File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -235,10 +235,12 @@ pub enum NPY_TYPECHAR {
235
235
NPY_UINTPLTR = b'P' ,
236
236
}
237
237
238
+ // Note: NPY_TYPEKINDCHAR doesn't exist in the header and has been created here artificially
239
+ // because the original C enum contained duplicate values - namely, those related to type kinds.
240
+ // There's also a comment in the C code preceding this block of values and stating that they are
241
+ // related to type kind chars and not type codes.
238
242
#[ repr( u8 ) ]
239
243
#[ derive( Debug , Clone , Copy ) ]
240
- // NPY_TYPEKINDCHAR doesn't exist in the header, but these enum values are not
241
- // related to NPY_TYPECHAR although being stuffed into it (type kinds, not type codes)
242
244
pub enum NPY_TYPEKINDCHAR {
243
245
NPY_GENBOOLLTR = b'b' ,
244
246
NPY_SIGNEDLTR = b'i' ,
You can’t perform that action at this time.
0 commit comments