diff options
| author | Pav Lucistnik <pav@FreeBSD.org> | 2004-11-06 16:15:53 +0000 |
|---|---|---|
| committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-11-06 16:15:53 +0000 |
| commit | 81b2f337fd6355cf6acca4fa8d65882d1eb20da6 (patch) | |
| tree | c6a42b39eb808a8fa3b36498decd1f1a048bf5e7 /math/vtk43/files/patch-IO-vtkImageReader.cxx | |
| parent | Update to 3.11.3. (diff) | |
- Fix build on FreeBSD 5.3
PR: ports/73607
Submitted by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
Diffstat (limited to 'math/vtk43/files/patch-IO-vtkImageReader.cxx')
| -rw-r--r-- | math/vtk43/files/patch-IO-vtkImageReader.cxx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/math/vtk43/files/patch-IO-vtkImageReader.cxx b/math/vtk43/files/patch-IO-vtkImageReader.cxx new file mode 100644 index 000000000000..3e302e72af59 --- /dev/null +++ b/math/vtk43/files/patch-IO-vtkImageReader.cxx @@ -0,0 +1,30 @@ +diff -u -r1.109 -r1.110 +--- IO/vtkImageReader.cxx 2002/12/26 18:18:50 1.109 ++++ IO/vtkImageReader.cxx 2003/10/19 14:38:03 1.110 +@@ -166,7 +166,7 @@ + streamStart += this->GetHeaderSize(idx); + + // error checking +- this->File->seekg((long)streamStart, ios::beg); ++ this->File->seekg(static_cast<long>(streamStart), ios::beg); + if (this->File->fail()) + { + vtkErrorMacro(<< "File operation failed: " << streamStart << ", ext: " +@@ -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(static_cast<long>(self->GetFile()->tellg()) + 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(static_cast<long>(self->GetFile()->tellg()) + streamSkip1 + correction, + ios::beg); + outPtr2 += outIncr[2]; + } |
