freebsd-ports/textproc/isearch/files/patch-src::Iindex.cxx
Dmitry Marakasov d008ed3cbb - Fix build with gcc4.2 and amd64: remove -fwritable-strings.
- Remove GNU_CONFIGURE since it was doing nothing: respect CXX CXXFLAGS.
- Clean some warnings related to deprecated C++ headers.
- Use %%DOCSDIR%% in pkg-plist

PR:		126441
Submitted by:	"Pedro F. Giffuni" <giffunip at tutopia dot com>
Approved by:	Paul Marquis <pmarquis at pobox dot com> (maintainer)
2008-09-02 20:39:26 +00:00

11 lines
424 B
C++

--- src/Iindex.cxx.orig 2008-08-10 22:50:36.000000000 -0500
+++ src/Iindex.cxx 2008-08-10 22:52:14.000000000 -0500
@@ -170,7 +170,7 @@
}
}
if (Found) {
- Offset = (GPTYPE)((UINT4)Found - (UINT4)Buffer);
+ Offset = (GPTYPE)((UINT8)Found - (UINT8)Buffer);
/* the separator marks the beginning of the next
record. (offset - 1), then marks the end of
the current record. we must make sure that the