diff options
Diffstat (limited to 'src/alf.c')
| -rw-r--r-- | src/alf.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -189,6 +189,7 @@ void convert_eols(void) { } int percent(unsigned int out, unsigned int in) { + if(!in) return 0; return 100 - (int)((float)out / (float)in * 100.0); } |
