diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-01-08 21:01:21 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-01-08 21:01:21 +0000 |
commit | ecceb20a8b13df9af33a052b75fab4fa3ae189ea (patch) | |
tree | 8e119ed25e44e36721c88b6a283bfe4a316bb47f | |
parent | bc494c71f58790d69754c193e07f48ca9f8c2f74 (diff) | |
download | gtk+-ecceb20a8b13df9af33a052b75fab4fa3ae189ea.tar.gz |
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)
-rw-r--r-- | gdk-pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | gdk-pixbuf/queryloaders.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 6a18fb3145..a0a2b932cb 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -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 diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c index 41c4c3669d..f5428f30da 100644 --- a/gdk-pixbuf/queryloaders.c +++ b/gdk-pixbuf/queryloaders.c @@ -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; |