From: Owen Taylor Date: Wed, 6 Nov 2002 20:26:27 +0000 (+0000) Subject: Fix trailing semicolon on macro, clean up a bit. X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=3f92a70e8b121856e1ec69ec1f33a269a0e30428;p=~andy%2Fgtk Fix trailing semicolon on macro, clean up a bit. Wed Nov 6 15:19:53 2002 Owen Taylor * io-gif.c (CHECK_LZW_SP): Fix trailing semicolon on macro, clean up a bit. --- diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 4ad272875..d048e8e11 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 6 15:19:53 2002 Owen Taylor + + * io-gif.c (CHECK_LZW_SP): Fix trailing semicolon on macro, + clean up a bit. + 2002-11-05 Matthias Clasen * gdk-pixbuf-loader.c: Reindent to follow the gdk-pixbuf indentation. diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c index 6eb364ec1..b5e3072a6 100644 --- a/gdk-pixbuf/io-gif.c +++ b/gdk-pixbuf/io-gif.c @@ -565,13 +565,16 @@ gif_lzw_clear_code (GifContext *context) return 0; } -#define CHECK_LZW_SP() if(((guchar *)context->lzw_sp) >= (((guchar *)context->lzw_stack) + sizeof(context->lzw_stack))) { \ - g_set_error (context->error, \ - GDK_PIXBUF_ERROR, \ - GDK_PIXBUF_ERROR_CORRUPT_IMAGE, \ - _("Stack overflow")); \ - return -2; \ -} +#define CHECK_LZW_SP() G_STMT_START { \ + if ((guchar *)context->lzw_sp >= \ + (guchar *)context->lzw_stack + sizeof (context->lzw_stack)) { \ + g_set_error (context->error, \ + GDK_PIXBUF_ERROR, \ + GDK_PIXBUF_ERROR_CORRUPT_IMAGE, \ + _("Stack overflow")); \ + return -2; \ + } \ +} G_STMT_END static int lzw_read_byte (GifContext *context)