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

20 Feb
2014
20 Feb
'14
11:56 a.m.
commit b063ebbc60a1fce9526b00c2fdfd9c0475652420 Author: Nick Hopper <hopper@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];
4105
Age (days ago)
4105
Last active (days ago)
0 comments
1 participants
participants (1)
-
nickm@torproject.org