$NetBSD: patch-ab,v 1.10 2011/11/27 11:51:17 marino Exp $ --- src/songlendb/File.cpp.orig 2002-03-03 18:00:03.000000000 +0000 +++ src/songlendb/File.cpp @@ -27,6 +27,7 @@ #ifdef XSID_HAVE_NOTHROW #include #endif +#include using namespace std; #include "File.h" @@ -126,7 +127,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