summaryrefslogtreecommitdiff
path: root/math/vtk/files/patch-IO-vtkBMPReader.cxx
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-11-06 16:15:53 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-11-06 16:15:53 +0000
commit81b2f337fd6355cf6acca4fa8d65882d1eb20da6 (patch)
treec6a42b39eb808a8fa3b36498decd1f1a048bf5e7 /math/vtk/files/patch-IO-vtkBMPReader.cxx
parentUpdate to 3.11.3. (diff)
- Fix build on FreeBSD 5.3
PR: ports/73607 Submitted by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
Notes
Notes: svn path=/head/; revision=120968
Diffstat (limited to 'math/vtk/files/patch-IO-vtkBMPReader.cxx')
-rw-r--r--math/vtk/files/patch-IO-vtkBMPReader.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/math/vtk/files/patch-IO-vtkBMPReader.cxx b/math/vtk/files/patch-IO-vtkBMPReader.cxx
new file mode 100644
index 000000000000..f82deeb825e5
--- /dev/null
+++ b/math/vtk/files/patch-IO-vtkBMPReader.cxx
@@ -0,0 +1,16 @@
+diff -u -r1.44 -r1.45
+--- IO/vtkBMPReader.cxx 2003/09/10 19:41:56 1.44
++++ IO/vtkBMPReader.cxx 2003/10/19 14:38:03 1.45
+@@ -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(static_cast<long>(self->GetFile()->tellg()) + 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(static_cast<long>(self->GetFile()->tellg()) + streamSkip1, ios::beg);
+ outPtr2 += outIncr[2];
+ }