From: Owen Shepherd Date: Sat, 25 Aug 2012 16:31:08 +0000 (+0100) Subject: PDCLIB-6: Removing the zero flag requires bitwise and, not bitwise xor X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=commitdiff_plain;h=817d418aa481a2edb040813948797402c15eca85 PDCLIB-6: Removing the zero flag requires bitwise and, not bitwise xor --- diff --git a/functions/_PDCLIB/print.c b/functions/_PDCLIB/print.c index c43d29b..648f859 100644 --- a/functions/_PDCLIB/print.c +++ b/functions/_PDCLIB/print.c @@ -325,7 +325,7 @@ const char * _PDCLIB_print( const char * spec, struct _PDCLIB_status_t * status spec = endptr; } /* Having a precision cancels out any zero flag. */ - status->flags ^= E_zero; + status->flags &= ~E_zero; } /* Optional length modifier