mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-26 21:58:08 +01:00
numlen(0) == 1
This commit is contained in:
parent
2707be7199
commit
c8cf3f70f9
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ int wrap(int i, int max) {
|
|||
|
||||
int numlen(int n) {
|
||||
if (n == 0) {
|
||||
return n;
|
||||
return 1;
|
||||
}
|
||||
return log10(n) + 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue