[vtk-developers] Bug in vtkWriter::EncodeWriteString?

Brad King brad.king at kitware.com
Wed Oct 21 08:27:13 EDT 2009


Wilson, Andrew T wrote:
> It's like the 8-bit char argument to
> sprintf is being promoted to a 32-bit int.

The 8-bit *signed* char is promoted to a 32-bit *signed* int and then
treated as an unsigned int.  Try casting the value to an *unsigned* char.

-Brad



More information about the vtk-developers mailing list