]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fixed long -> int implicit cast warning line 3453
authorNick Hopper <hopper@cs.umn.edu>
Thu, 20 Feb 2014 11:48:47 +0000 (05:48 -0600)
committerNick Mathewson <nickm@torproject.org>
Thu, 20 Feb 2014 11:54:01 +0000 (11:54 +0000)
src/common/util.c

index 054de3dbe923653bc28a0169997a80e8a2ff7f05..3c2f6643ad1a884b999f5342cb6d6d1df823d7e4 100644 (file)
@@ -3450,7 +3450,7 @@ format_number_sigsafe(unsigned long x, char *buf, int buf_len,
   cp = buf + len;
   *cp = '\0';
   do {
-    unsigned digit = x % radix;
+    unsigned digit = (unsigned) (x % radix);
     tor_assert(cp > buf);
     --cp;
     *cp = "0123456789ABCDEF"[digit];