From ea7f63633bd86d134f543686e4f285a6873c5638 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 17:06:31 +0000 Subject: * Suppress a signed/unsigned warning in apt-cache.cc:Di... Author: mdz Date: 2004-04-30 04:34:03 GMT * Suppress a signed/unsigned warning in apt-cache.cc:DisplayRecord --- cmdline/apt-cache.cc | 4 ++-- debian/changelog | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index de7b95476..b3468a97a 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-cache.cc,v 1.71 2004/01/04 19:00:10 mdz Exp $ +// $Id: apt-cache.cc,v 1.72 2004/04/30 04:34:03 mdz Exp $ /* ###################################################################### apt-cache - Manages the cache files @@ -1197,7 +1197,7 @@ bool DisplayRecord(pkgCache::VerIterator V) Buffer[V.FileList()->Size] = '\n'; if (PkgF.Seek(V.FileList()->Offset) == false || PkgF.Read(Buffer,V.FileList()->Size) == false || - fwrite(Buffer,1,V.FileList()->Size+1,stdout) < V.FileList()->Size+1) + fwrite(Buffer,1,V.FileList()->Size+1,stdout) < (size_t)(V.FileList()->Size+1)) { delete [] Buffer; return false; diff --git a/debian/changelog b/debian/changelog index bd158a834..cee19ade3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -31,8 +31,9 @@ apt (0.5.25) unstable; urgency=low * Increase length of line buffer in ReadConfigFile to 1024 chars; detect if a line is longer than that and error out (Closes: #244835) + * Suppress a signed/unsigned warning in apt-cache.cc:DisplayRecord - -- Matt Zimmerman Thu, 29 Apr 2004 21:00:02 -0700 + -- Matt Zimmerman Thu, 29 Apr 2004 21:33:48 -0700 apt (0.5.24) unstable; urgency=low -- cgit v1.2.3