mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
fixed long -> int implicit cast warning line 3453
This commit is contained in:
parent
c0835f8e75
commit
b063ebbc60
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user