Mercurial > hg > th-libs
changeset 298:86fe17a2ed81
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 22 Feb 2016 18:29:53 +0200 |
parents | bd10af062702 |
children | 0311f139fcf6 |
files | th_string.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/th_string.c Mon Feb 22 16:41:58 2016 +0200 +++ b/th_string.c Mon Feb 22 18:29:53 2016 +0200 @@ -282,17 +282,19 @@ while (th_isdigit(*fmt)) f_width = f_width * 10 + (*fmt++ - '0'); - // Check for precision + // Check for field precision if (*fmt == '.') { fmt++; if (!th_isdigit(*fmt)) return -103; + // If no digit after '.', precision is to be 0 f_prec = 0; while (th_isdigit(*fmt)) f_prec = f_prec * 10 + (*fmt++ - '0'); } + // Check for length modifiers (NOT SUPPORTED CURRENTLY) switch (*fmt) {