mirror of
https://github.com/NevermindZZT/letter-shell.git
synced 2025-01-21 10:02:54 +08:00
Update shell.c
This commit is contained in:
parent
37b321136b
commit
6930064575
@ -412,6 +412,9 @@ signed char shellToDec(int value, char *buffer)
|
|||||||
{
|
{
|
||||||
buffer[--i] = '-';
|
buffer[--i] = '-';
|
||||||
}
|
}
|
||||||
|
if (value == 0) {
|
||||||
|
buffer[--i] = '0';
|
||||||
|
}
|
||||||
return 11 - i;
|
return 11 - i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user