]> pd.if.org Git - pdclib.old/commitdiff
PDCLIB-6: Removing the zero flag requires bitwise and, not bitwise xor
authorOwen Shepherd <owen.shepherd@e43.eu>
Sat, 25 Aug 2012 16:31:08 +0000 (17:31 +0100)
committerOwen Shepherd <owen.shepherd@e43.eu>
Sat, 25 Aug 2012 16:31:08 +0000 (17:31 +0100)
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