Mercurial > hg > th-libs
changeset 323:63c5b1bf8b98
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 23 Feb 2016 11:23:32 +0200 |
parents | 78825ff74195 |
children | 0084618812ee |
files | th_string.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/th_string.c Tue Feb 23 10:36:24 2016 +0200 +++ b/th_string.c Tue Feb 23 11:23:32 2016 +0200 @@ -159,16 +159,16 @@ int th_printf_vput_intstr(th_printf_ctx *ctx, th_printf_vputch vputch, - const char *buf, const int f_width, int pos, int f_prec, int f_flags, + const char *buf, const int f_width, int f_len, int f_prec, int f_flags, const char f_sign) { // Calculate necessary padding, if any - int ret, nwidth = f_width - pos; + int ret, nwidth = f_width - f_len; if (f_sign) nwidth--; - if (f_prec > 0 && f_prec > pos) + if (f_prec > 0 && f_prec > f_len) { nwidth = nwidth - f_prec + 1; f_flags &= ~TH_PF_ZERO; @@ -181,7 +181,7 @@ if (f_sign && (ret = vputch(ctx, f_sign)) == EOF) return ret; - if (f_prec > 0 && f_prec > pos) + if (f_prec > 0 && f_prec > f_len) { while (--f_prec) { @@ -192,9 +192,9 @@ } // Output the value - while (pos--) + while (f_len--) { - if ((ret = vputch(ctx, buf[pos])) == EOF) + if ((ret = vputch(ctx, buf[f_len])) == EOF) return ret; }