pkgsrc/audio/xsidplay/patches/patch-ab
joerg 2b753b2ace Add an explicit cast from streampos to size_t, GCC 3.4 follows the
standard by considering it ambigous.
Override ltmain.sh with pkgsrc version to avoid linkage problem on
DragonFly. The old ltmain.sh is confused by -pthread.
2005-12-07 18:59:26 +00:00

13 lines
436 B
Text

$NetBSD: patch-ab,v 1.8 2005/12/07 18:59:26 joerg Exp $
--- src/songlendb/File.cpp.orig 2005-12-07 16:56:52.000000000 +0000
+++ src/songlendb/File.cpp
@@ -126,7 +126,7 @@ bool SongLengthFile::init(const char* fi
streampos fileLen = myIn.tellg();
#endif
#ifdef XSID_HAVE_NOTHROW
- pDB = new(std::nothrow) char[fileLen+1L];
+ pDB = new(std::nothrow) char[(size_t)fileLen+1L];
#else
pDB = new char[fileLen+1L];
#endif