From: Nick Hopper Date: Thu, 20 Feb 2014 11:48:47 +0000 (-0600) Subject: fixed long -> int implicit cast warning line 3453 X-Git-Tag: tor-0.2.5.3-alpha~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b063ebbc60a1fce9;p=thirdparty%2Ftor.git fixed long -> int implicit cast warning line 3453 --- diff --git a/src/common/util.c b/src/common/util.c index 054de3dbe9..3c2f6643ad 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];