From: Sebastian Wilhelmi Date: Mon, 1 Jul 2002 12:41:50 +0000 (+0000) Subject: Add parenthesis to protect macro argument. Spotted by Sam Couter" X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=627926a6cf893cd69560bf5b7d69a15c7eab6826;p=dana%2Fcg-glib.git Add parenthesis to protect macro argument. Spotted by Sam Couter" 2002-07-01 Sebastian Wilhelmi * glib/garray.h: Add parenthesis to protect macro argument. Spotted by Sam Couter" . (#86826) --- diff --git a/ChangeLog b/ChangeLog index 250e5d53..a9a4dd47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-07-01 Sebastian Wilhelmi + + * glib/garray.h: Add parenthesis to protect macro + argument. Spotted by Sam Couter" . (#86826) + 2002-06-28 Sebastian Wilhelmi * glib/gmessages.h (g_assert, g_assert_not_reached, diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 250e5d53..a9a4dd47 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2002-07-01 Sebastian Wilhelmi + + * glib/garray.h: Add parenthesis to protect macro + argument. Spotted by Sam Couter" . (#86826) + 2002-06-28 Sebastian Wilhelmi * glib/gmessages.h (g_assert, g_assert_not_reached, diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 250e5d53..a9a4dd47 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2002-07-01 Sebastian Wilhelmi + + * glib/garray.h: Add parenthesis to protect macro + argument. Spotted by Sam Couter" . (#86826) + 2002-06-28 Sebastian Wilhelmi * glib/gmessages.h (g_assert, g_assert_not_reached, diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 250e5d53..a9a4dd47 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2002-07-01 Sebastian Wilhelmi + + * glib/garray.h: Add parenthesis to protect macro + argument. Spotted by Sam Couter" . (#86826) + 2002-06-28 Sebastian Wilhelmi * glib/gmessages.h (g_assert, g_assert_not_reached, diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 250e5d53..a9a4dd47 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2002-07-01 Sebastian Wilhelmi + + * glib/garray.h: Add parenthesis to protect macro + argument. Spotted by Sam Couter" . (#86826) + 2002-06-28 Sebastian Wilhelmi * glib/gmessages.h (g_assert, g_assert_not_reached, diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 250e5d53..a9a4dd47 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2002-07-01 Sebastian Wilhelmi + + * glib/garray.h: Add parenthesis to protect macro + argument. Spotted by Sam Couter" . (#86826) + 2002-06-28 Sebastian Wilhelmi * glib/gmessages.h (g_assert, g_assert_not_reached, diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 250e5d53..a9a4dd47 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2002-07-01 Sebastian Wilhelmi + + * glib/garray.h: Add parenthesis to protect macro + argument. Spotted by Sam Couter" . (#86826) + 2002-06-28 Sebastian Wilhelmi * glib/gmessages.h (g_assert, g_assert_not_reached, diff --git a/glib/garray.h b/glib/garray.h index 56b3937f..80421830 100644 --- a/glib/garray.h +++ b/glib/garray.h @@ -99,7 +99,7 @@ void g_array_sort_with_data (GArray *array, * cleared spot and shortens the array. remove_fast will again distort * order. */ -#define g_ptr_array_index(array,index) (array->pdata)[index] +#define g_ptr_array_index(array,index) ((array)->pdata)[index] GPtrArray* g_ptr_array_new (void); GPtrArray* g_ptr_array_sized_new (guint reserved_size); gpointer* g_ptr_array_free (GPtrArray *array,