Don't use bitwise operators on booleans. (#130923, reported by Telsa

Thu Jan  8 22:01:14 2004  Matthias Clasen  <maclas@gmx.de>

	* queryloaders.c (loader_sanity_check): Don't use bitwise operators
	on booleans.  (#130923, reported by Telsa Gwynne, fix by Dave Jones)
This commit is contained in:
Matthias Clasen 2004-01-08 21:01:21 +00:00 committed by Matthias Clasen
parent bc494c71f5
commit ecceb20a8b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Jan 8 22:01:14 2004 Matthias Clasen <maclas@gmx.de>
* queryloaders.c (loader_sanity_check): Don't use bitwise operators
on booleans. (#130923, reported by Telsa Gwynne, fix by Dave Jones)
2004-01-06 Federico Mena Quintero <federico@ximian.com>
* gdk-pixbuf-io.c (gdk_pixbuf_save): Escape an ampersand in the

View File

@ -100,7 +100,7 @@ loader_sanity_check (const char *path, GdkPixbufFormat *info, GdkPixbufModule *v
goto error;
}
if ((info->flags & GDK_PIXBUF_FORMAT_WRITABLE) & !vtable->save)
if ((info->flags & GDK_PIXBUF_FORMAT_WRITABLE) && !vtable->save)
{
error = "loader claims to support saving but doesn't implement save";
goto error;