fixed long -> int implicit cast warning line 3453

This commit is contained in:
Nick Hopper 2014-02-20 05:48:47 -06:00 committed by Nick Mathewson
parent c0835f8e75
commit b063ebbc60

View File

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