[or-cvs] [tor/maint-0.2.2 2/3] Fix size_t vs unsigned comparison too

nickm at torproject.org nickm at torproject.org
Wed Jan 12 17:40:11 UTC 2011


Author: Nick Mathewson <nickm at torproject.org>
Date: Wed, 5 Jan 2011 12:49:02 -0500
Subject: Fix size_t vs unsigned comparison too
Commit: 240fa42aacf8cadbd00b66686320365359d8179a

---
 src/common/crypto.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/crypto.c b/src/common/crypto.c
index 71cf6d4..e47fa56 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -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;
 
-- 
1.7.1




More information about the tor-commits mailing list