# HG changeset patch # User Matti Hamalainen # Date 1456393912 -7200 # Node ID b1984383aaace7d85d7bd1df554c2f055b0f9dfe # Parent 9ca9ef4e36566aa693ba8444700c916df5ab3eab We should OR to the flags instead of forcing them for %p. :S diff -r 9ca9ef4e3656 -r b1984383aaac th_string.c --- a/th_string.c Thu Feb 25 11:50:43 2016 +0200 +++ b/th_string.c Thu Feb 25 11:51:52 2016 +0200 @@ -405,9 +405,9 @@ case 'p': #if (TH_PTRSIZE == 32) - f_flags = TH_PF_LONG; + f_flags |= TH_PF_LONG; #elif (TH_PTRSIZE == 64) - f_flags = TH_PF_LONGLONG; + f_flags |= TH_PF_LONGLONG; #endif f_flags |= TH_PF_ALT; if ((ret = th_printf_vput_int(ctx, vputch, ap, 16, f_flags, f_width, f_prec, TRUE, th_printf_altfmt_hex)) == EOF)