]> git.saurik.com Git - apt.git/commitdiff
Fixed signed conversion
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:51:28 +0000 (16:51 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:51:28 +0000 (16:51 +0000)
Author: jgg
Date: 1998-11-13 23:20:06 GMT
Fixed signed conversion

apt-pkg/depcache.cc

index 68c452f31f95504ba67b08ac5b03c26cf5dd4940..db1cdad626791a7dd64c4ff69a24736f287f8087 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: depcache.cc,v 1.4 1998/10/24 04:58:05 jgg Exp $
+// $Id: depcache.cc,v 1.5 1998/11/13 23:20:06 jgg Exp $
 /* ######################################################################
 
    Dependency Cache - Caches Dependency information.
@@ -219,8 +219,8 @@ void pkgDepCache::AddSizes(const PkgIterator &Pkg,long Mult)
    if (Pkg->CurrentVer != 0 && P.InstallVer != (Version *)Pkg.CurrentVer() &&
        P.InstallVer != 0)
    {
-      iUsrSize += Mult*(P.InstVerIter(*this)->InstalledSize - 
-                       Pkg.CurrentVer()->InstalledSize);
+      iUsrSize += Mult*((signed)P.InstVerIter(*this)->InstalledSize - 
+                       (signed)Pkg.CurrentVer()->InstalledSize);
       iDownloadSize += Mult*P.InstVerIter(*this)->Size;
    }