[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] fixed long -> int implicit cast warning line 3453
commit b063ebbc60a1fce9526b00c2fdfd9c0475652420
Author: Nick Hopper <hopper@xxxxxxxxxx>
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];
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits