Commit e8847df5 authored by Brad King's avatar Brad King

ENH: Using VTK_SIGNED_CHAR for Int8 on platforms where plain-old char is not...

ENH: Using VTK_SIGNED_CHAR for Int8 on platforms where plain-old char is not signed.  For platforms where char is signed, VTK_CHAR is used for Int8 to preserve the old behavior.
parent e07ffab5
......@@ -20,7 +20,7 @@
#include <ctype.h>
vtkCxxRevisionMacro(vtkXMLDataElement, "1.20");
vtkCxxRevisionMacro(vtkXMLDataElement, "1.21");
vtkStandardNewMacro(vtkXMLDataElement);
//----------------------------------------------------------------------------
......@@ -608,7 +608,12 @@ int vtkXMLDataElement::GetWordTypeAttribute(const char* name, int& value)
}
else if(strcmp(v, "Int8") == 0)
{
// For compatibility, use char when it is signed.
#if VTK_TYPE_CHAR_IS_SIGNED
value = VTK_CHAR;
#else
value = VTK_SIGNED_CHAR;
#endif
return 1;
}
else if(strcmp(v, "UInt8") == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment