]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/sha1.cc
enable APT in unpack/configure ordering to handle loops as well
[apt.git] / apt-pkg / contrib / sha1.cc
index 5b9db202d0b2d161f36d00350e1424a6fc6db0ac..b5a6a244064f21dbc2200cb8b1b51b39df929914 100644 (file)
@@ -29,6 +29,8 @@
  */
                                                                        /*}}} */
 // Include Files                                                        /*{{{*/
+#include <config.h>
+
 #include <apt-pkg/sha1.h>
 #include <apt-pkg/strutl.h>
 #include <apt-pkg/macros.h>
@@ -36,7 +38,6 @@
 #include <string.h>
 #include <unistd.h>
 #include <inttypes.h>
-#include <config.h>
                                                                        /*}}}*/
 
 // SHA1Transform - Alters an existing SHA-1 hash                       /*{{{*/
@@ -241,7 +242,7 @@ SHA1SumValue SHA1Summation::Result()
 // SHA1Summation::Add - Adds content of buffer into the checksum        /*{{{*/
 // ---------------------------------------------------------------------
 /* May not be called after Result() is called */
-bool SHA1Summation::Add(const unsigned char *data,unsigned long len)
+bool SHA1Summation::Add(const unsigned char *data,unsigned long long len)
 {
    if (Done)
       return false;