--- ParaView-3.12.0/Utilities/VisItBridge/databases/CGNS/avtCGNSFileFormat.C.orig	2012-01-09 21:49:18.246599607 +0000
+++ ParaView-3.12.0/Utilities/VisItBridge/databases/CGNS/avtCGNSFileFormat.C	2012-01-09 22:06:17.008212762 +0000
@@ -326,7 +326,7 @@
                     for(int i = 0; i < narrays; ++i)
                     {
                         int ndims = 1;
-                        int dims[10];
+                        cgsize_t dims[10];
                         DataType_t dt;
                         if(cg_array_info(i+1, namenode, &dt, &ndims, dims) == CG_OK)
                         {
@@ -616,7 +616,7 @@
         {
             // Get information about the zone.
             char zonename[33];
-            int zsize[9];
+            cgsize_t zsize[9];
             memset(zonename, 0, 33);
             memset(zsize, 0, 9 * sizeof(int));
 
@@ -983,7 +983,7 @@
             {
                 char namenode[33];
                 int ndims = 1;
-                int dims[10];
+                cgsize_t dims[10];
                 DataType_t dt;
                 if(cg_array_info(i+1, namenode, &dt, &ndims, dims) == CG_OK)
                 {
@@ -1354,7 +1354,7 @@
 
     vtkDataSet *retval = 0;
     char zonename[33];
-    int zsize[9];
+    cgsize_t zsize[9];
     memset(zonename, 0, 33);
     memset(zsize, 0, 9 * sizeof(int));
 
@@ -1462,8 +1462,8 @@
         err = *ncoords != 2 && *ncoords != 3;
 
         unsigned int nPts = 0;
-        int rmin[3] = {1,1,1};
-        int rmax[3] = {1,1,1};
+        cgsize_t rmin[3] = {1,1,1};
+        cgsize_t rmax[3] = {1,1,1};
         if(structured)
         {
             if(*ncoords == 1)
@@ -1727,7 +1727,8 @@
             {
                 char sectionname[33];
                 ElementType_t et = ElementTypeNull;
-                int start = 1, end = 1, bound = 0, parent_flag = 0;
+                cgsize_t start = 1, end = 1;
+                int bound = 0, parent_flag = 0;
                 if(cg_section_read(GetFileHandle(), base, zone, sec, sectionname, &et,
                     &start, &end, &bound, &parent_flag) != CG_OK)
                 {
@@ -1741,7 +1742,7 @@
                     continue;
                 }
 
-                int eDataSize = 0;
+                cgsize_t eDataSize = 0;
                 if(cg_ElementDataSize(GetFileHandle(), base, zone, sec, &eDataSize) != CG_OK)
                 {
                     debug4 << mName << "Could not determine ElementDataSize\n";
@@ -1749,7 +1750,7 @@
                 }
                 debug4 << "Element data size for sec " << sec << " is:" << eDataSize << endl;
 
-                int *elements = new int[eDataSize];
+                cgsize_t *elements = new cgsize_t[eDataSize];
                 if(elements == 0)
                 {
                     debug4 << mName << "Could not allocate memory for connectivity\n";
@@ -2074,7 +2075,7 @@
     vtkDataArray *retval = 0;
     int zone = domain + 1;
     char zonename[33];
-    int zsize[9];
+    cgsize_t zsize[9];
 
     memset(zonename, 0, 33);
     memset(zsize, 0, 9 * sizeof(int));
@@ -2240,8 +2241,8 @@
                             // for unstructured meshes.
                             //
                             int nvals = 0;
-                            int rmin[3] = {1,1,1};
-                            int rmax[3] = {1,1,1};
+                            cgsize_t rmin[3] = {1,1,1};
+                            cgsize_t rmax[3] = {1,1,1};
                             if(zt == Structured)
                             {
                                 if(varcentering == Vertex)
