]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix size_t vs unsigned comparison too
authorNick Mathewson <nickm@torproject.org>
Wed, 5 Jan 2011 17:49:02 +0000 (12:49 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 5 Jan 2011 17:49:02 +0000 (12:49 -0500)
src/common/crypto.c

index 71cf6d43d82fa3b7164aa156d8460f30ecc88ded..e47fa5602c800c1de2e5c4aa86808596ecc91b00 100644 (file)
@@ -2439,8 +2439,8 @@ base32_decode(char *dest, size_t destlen, const char *src, size_t srclen)
 {
   /* XXXX we might want to rewrite this along the lines of base64_decode, if
    * it ever shows up in the profile. */
-  unsigned int i, bit;
-  size_t nbits, j;
+  unsigned int i;
+  size_t nbits, j, bit;
   char *tmp;
   nbits = srclen * 5;