Skip to content

Convert np.int8 to VTK_SIGNED_CHAR, not VTK_CHAR

David Gobbi requested to merge dgobbi/vtk:numpy-int8-signed into master

Conversion of numpy's int8 datatype to VTK_CHAR was incorrect because int8 is always signed, but the signedness of VTK_CHAR is platform-dependent. The correct conversion is to VTK_SIGNED_CHAR. Also add a test for the conversion.

Backport: release

Edited by David Gobbi

Merge request reports

Loading