COMP: Remove warning about argument not being int
This commit is contained in:
parent
2804a0d7db
commit
01ac4158ed
|
@ -163,7 +163,7 @@ oct_to_int(char *oct)
|
|||
void
|
||||
int_to_oct_nonull(int num, char *oct, size_t octlen)
|
||||
{
|
||||
snprintf(oct, octlen, "%*lo", octlen - 1, (unsigned long)num);
|
||||
snprintf(oct, octlen, "%*lo", (int)(octlen-1), (unsigned long)num);
|
||||
oct[octlen - 1] = ' ';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue