dgobbi / vtk-dicom

A set of classes for using DICOM in VTK.
BSD 3-Clause "New" or "Revised" License
258 stars 94 forks source link

Cast input to isprint into unsigned char #191

Closed malaterre closed 4 years ago

malaterre commented 4 years ago

man page for isprint states:

The standards require that the argument c for these functions is either EOF or a value that is representable in the type unsigned char. If the argument c is of type char, it must be cast to unsigned char.

dgobbi commented 4 years ago

Done, thanks. I changed the C-style cast into a static_cast, and fixed some similar isprint() calls in vtkNIFTIHeader.cxx.