# HG changeset patch # User Matti Hamalainen # Date 1456257585 -7200 # Node ID 1040f51bf770196a6b1d3ff2b11cd0d33df18f42 # Parent cde5415c4201c5bf02d3d849b57442322745c323 Cosmetics. diff -r cde5415c4201 -r 1040f51bf770 th_string.c --- a/th_string.c Tue Feb 23 17:39:14 2016 +0200 +++ b/th_string.c Tue Feb 23 21:59:45 2016 +0200 @@ -185,8 +185,8 @@ //#include "th_printf1.c" -static int th_printf_vput_int(th_printf_ctx *ctx, th_printf_vputch vputch, va_list ap, - const int f_radix, int f_flags, int f_width, int f_prec, +static int th_printf_vput_int(th_printf_ctx *ctx, th_printf_vputch vputch, + va_list ap, const int f_radix, int f_flags, int f_width, int f_prec, const BOOL f_unsig, char *(f_alt)(const int flags)) { char buf[64]; @@ -194,7 +194,6 @@ char f_sign, *f_altstr; BOOL f_neg = FALSE; - if (f_flags & TH_PF_LONGLONG) { ret = th_printf_vbuf_int64(buf, sizeof(buf), &f_len, va_arg(ap, int64_t), @@ -213,7 +212,9 @@ return ret; // Are we using a sign prefix? - f_sign = f_unsig ? 0 : ((f_flags & TH_PF_SIGN) ? (f_neg ? '-' : '+') : (f_neg ? '-' : ((f_flags & TH_PF_SPACE) ? ' ' : 0))); + f_sign = f_unsig ? 0 : ((f_flags & TH_PF_SIGN) ? + (f_neg ? '-' : '+') : + (f_neg ? '-' : ((f_flags & TH_PF_SPACE) ? ' ' : 0))); // Calculate necessary padding, etc f_prec = (f_prec > f_len) ? f_prec - f_len : 0;