1
0
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:
Letter 2020-02-17 17:33:58 +08:00
parent 37b321136b
commit 6930064575

View File

@ -412,6 +412,9 @@ signed char shellToDec(int value, char *buffer)
{
buffer[--i] = '-';
}
if (value == 0) {
buffer[--i] = '0';
}
return 11 - i;
}