[tor-commits] [tor/master] fixed long -> int implicit cast warning line 3453

nickm at torproject.org nickm at torproject.org
Thu Feb 20 11:56:30 UTC 2014


commit b063ebbc60a1fce9526b00c2fdfd9c0475652420
Author: Nick Hopper <hopper at cs.umn.edu>
Date:   Thu Feb 20 05:48:47 2014 -0600

    fixed long -> int implicit cast warning line 3453
---
 src/common/util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/util.c b/src/common/util.c
index 054de3d..3c2f664 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -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];





More information about the tor-commits mailing list