fixed %js handling in the formatting funtion

This commit is contained in:
hyung-hwan 2022-01-24 07:40:31 +00:00
parent 886b67e602
commit 3c775e752b

View File

@ -885,7 +885,7 @@ static int fmt_outv (hawk_fmtout_t* fmtout, va_list ap)
/* zeropad must not take effect for 's' */ /* zeropad must not take effect for 's' */
if (flagc & FLAGC_ZEROPAD) padc = ' '; if (flagc & FLAGC_ZEROPAD) padc = ' ';
if (lm_flag & LF_H) goto lowercase_s; if (lm_flag & LF_H) goto lowercase_s;
#if defined(HAWK_OOCH_IS_UCH) #if defined(HAWK_OOCH_IS_BCH)
if (lm_flag & (LF_J | LF_JJ)) goto lowercase_s; if (lm_flag & (LF_J | LF_JJ)) goto lowercase_s;
#endif #endif
uppercase_s: uppercase_s: