]> pd.if.org Git - pdclib.old/blobdiff - functions/_PDCLIB/print.c
PDCLIB-6: Removing the zero flag requires bitwise and, not bitwise xor
[pdclib.old] / functions / _PDCLIB / print.c
index c43d29b12be52f3140e25c27db2006b3a471ae3e..648f8596b48ca7e9a010532317c734b69c88d37e 100644 (file)
@@ -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