Selaa lähdekoodia

fixed long -> int implicit cast warning line 3453

Nick Hopper 10 vuotta sitten
vanhempi
commit
b063ebbc60
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/common/util.c

+ 1 - 1
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];