Commit ecfd398d authored by Will Schroeder's avatar Will Schroeder
Browse files

ERR:More vtkIdType/int mismatches

parent 2a8df073
......@@ -41,7 +41,7 @@
#include "vtkByteSwap.h"
#include "vtkCellArray.h"
vtkCxxRevisionMacro(vtkAVSucdReader, "1.4");
vtkCxxRevisionMacro(vtkAVSucdReader, "1.5");
vtkStandardNewMacro(vtkAVSucdReader);
vtkAVSucdReader::vtkAVSucdReader()
......@@ -440,9 +440,9 @@ void vtkAVSucdReader::ReadGeometry()
void vtkAVSucdReader::ReadBinaryCellTopology(vtkIntArray *materials, int *types, vtkIdTypeArray *listcells)
{
int i, j, k1, k2;
int *mat = materials->GetPointer(0);
int *list = listcells->GetPointer(0);
int *Ctype = new int[4 * this->NumberOfCells];
vtkIdType *mat = materials->GetPointer(0);
vtkIdType *list = listcells->GetPointer(0);
vtkIdType *Ctype = new int[4 * this->NumberOfCells];
if(Ctype == NULL)
{
vtkErrorMacro(<< "Error allocating Ctype memory");
......
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