An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit cac0d484 authored by David Cole's avatar David Cole
Browse files

ENH: Merge changes from main tree into VTK-5-0 branch. (cvs -q up -j1.25...

ENH: Merge changes from main tree into VTK-5-0 branch. (cvs -q up -j1.25 -j1.26 Common/vtkDataArrayTemplate.txx)
parent d02e4fb3
......@@ -96,7 +96,7 @@ int vtkDataArrayTemplate<T>::Allocate(vtkIdType sz, vtkIdType)
this->Size = 0;
this->SaveUserArray = 0;
int newSize = (sz > 0 ? sz : 1);
vtkIdType newSize = (sz > 0 ? sz : 1);
this->Array = (T*)malloc(newSize * sizeof(T));
if(!this->Array)
{
......
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