]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sha1.cc
* merged changes from Kamions upload (thanks!)
[apt.git] / apt-pkg / contrib / sha1.cc
index 9b402c5235824d5f83f3362069ab0a053080e3fa..72eafd4ca357a6b8804996361effc371bbe71563 100644 (file)
@@ -347,7 +347,7 @@ bool SHA1Summation::AddFD(int Fd,unsigned long Size)
    while (Size != 0 || ToEOF)
    {
       unsigned n = sizeof(Buf);
-      if (!ToEOF) n = MIN(Size,n);
+      if (!ToEOF) n = min(Size,(unsigned long)n);
       Res = read(Fd,Buf,n);
       if (Res < 0 || (!ToEOF && (unsigned) Res != n)) // error, or short read
         return false;