summaryrefslogtreecommitdiff
blob: b85d00f17572d604aebf77467abc1df1ae67b7fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff -ur VTK.orig/IO/vtkBMPReader.cxx VTK/IO/vtkBMPReader.cxx
--- VTK.orig/IO/vtkBMPReader.cxx	2003-02-25 11:59:24.000000000 -0500
+++ VTK/IO/vtkBMPReader.cxx	2005-03-03 00:20:31.000000000 -0500
@@ -504,11 +504,11 @@
         outPtr0 += outIncr[0];
         }
       // move to the next row in the file and data
-      self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip0, ios::beg);
+      self->GetFile()->seekg(self->GetFile()->tellg() + (ios::pos_type)streamSkip0, ios::beg);
       outPtr1 += outIncr[1];
       }
     // move to the next image in the file and data
-    self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip1, ios::beg);
+    self->GetFile()->seekg(self->GetFile()->tellg() + (ios::pos_type)streamSkip1, ios::beg);
     outPtr2 += outIncr[2];
     }
 
diff -ur VTK.orig/IO/vtkImageReader.cxx VTK/IO/vtkImageReader.cxx
--- VTK.orig/IO/vtkImageReader.cxx	2002-12-26 13:18:50.000000000 -0500
+++ VTK/IO/vtkImageReader.cxx	2005-03-03 00:20:01.000000000 -0500
@@ -366,7 +366,7 @@
       // if that happens, store the value in correction and apply later
       if (filePos + streamSkip0 >= 0)
         {
-        self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip0, ios::beg);
+        self->GetFile()->seekg(self->GetFile()->tellg() + (ios::pos_type)streamSkip0, ios::beg);
         correction = 0;
         }
       else
@@ -376,7 +376,7 @@
       outPtr1 += outIncr[1];
       }
     // move to the next image in the file and data
-    self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip1 + correction, 
+    self->GetFile()->seekg(self->GetFile()->tellg() + (ios::pos_type)streamSkip1 + (ios::pos_type)correction, 
                       ios::beg);
     outPtr2 += outIncr[2];
     }