Commit 153262e7 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

Cast values so that on 64 bit ids there will not be any problem

parent 0375da0c
...@@ -69,7 +69,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ...@@ -69,7 +69,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <vector> #include <vector>
vtkStandardNewMacro(vtkMyXdmfReader); vtkStandardNewMacro(vtkMyXdmfReader);
vtkCxxRevisionMacro(vtkMyXdmfReader, "1.3"); vtkCxxRevisionMacro(vtkMyXdmfReader, "1.4");
#if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__)) #if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__))
# include <direct.h> # include <direct.h>
...@@ -954,7 +954,8 @@ void vtkMyXdmfReader::ExecuteInformation() ...@@ -954,7 +954,8 @@ void vtkMyXdmfReader::ExecuteInformation()
EndExtent[0] = vtkMAX(1, EndExtent[0]) / this->Stride[2]; EndExtent[0] = vtkMAX(1, EndExtent[0]) / this->Stride[2];
EndExtent[1] = vtkMAX(1, EndExtent[1]) / this->Stride[1]; EndExtent[1] = vtkMAX(1, EndExtent[1]) / this->Stride[1];
EndExtent[2] = vtkMAX(1, EndExtent[2]) / this->Stride[0]; EndExtent[2] = vtkMAX(1, EndExtent[2]) / this->Stride[0];
vtkDebugMacro( << "EndExtents = " << EndExtent[0] << ", " << EndExtent[1] << ", " << EndExtent[2]); vtkDebugMacro( << "EndExtents = " << (vtkIdType)EndExtent[0] << ", "
<< (vtkIdType)EndExtent[1] << ", " << (vtkIdType)EndExtent[2]);
this->Outputs[0]->SetWholeExtent(0, EndExtent[2], this->Outputs[0]->SetWholeExtent(0, EndExtent[2],
0, EndExtent[1], 0, EndExtent[1],
0, EndExtent[0]); 0, EndExtent[0]);
......
Supports Markdown
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