Mercurial > hg > th-libs
diff th_printf1.c @ 457:85fa3d333556
Actually, revert the boolean changes .. meh.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Jan 2018 23:09:29 +0200 |
parents | 347bfd3e017e |
children | e4ce60239d16 |
line wrap: on
line diff
--- a/th_printf1.c Tue Jan 02 22:57:47 2018 +0200 +++ b/th_printf1.c Tue Jan 02 23:09:29 2018 +0200 @@ -8,8 +8,8 @@ int TH_PFUNC_NAME (char *buf, const int len, int *pos, - TH_PFUNC_TYPE_S pval, const int f_radix, const bool f_upcase, - const bool f_unsig, bool *f_neg) + TH_PFUNC_TYPE_S pval, const int f_radix, const BOOL f_upcase, + const BOOL f_unsig, BOOL *f_neg) #ifdef TH_PFUNC_HEADER ; #else @@ -20,11 +20,11 @@ // Check for negative value if (!f_unsig && pval < 0) { - *f_neg = true; + *f_neg = TRUE; pval = -pval; } else - *f_neg = false; + *f_neg = FALSE; // Render the value to a string in buf (reversed) TH_PFUNC_TYPE_U val = pval;