Add parenthesis to protect macro argument. Spotted by Sam Couter"
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Mon, 1 Jul 2002 12:41:50 +0000 (12:41 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Mon, 1 Jul 2002 12:41:50 +0000 (12:41 +0000)
2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/garray.h: Add parenthesis to protect macro
argument. Spotted by Sam Couter" <sam@topic.com.au>. (#86826)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/garray.h

index 250e5d5..a9a4dd4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib/garray.h: Add parenthesis to protect macro
+       argument. Spotted by Sam Couter" <sam@topic.com.au>. (#86826)
+
 2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib/gmessages.h (g_assert, g_assert_not_reached,
index 250e5d5..a9a4dd4 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib/garray.h: Add parenthesis to protect macro
+       argument. Spotted by Sam Couter" <sam@topic.com.au>. (#86826)
+
 2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib/gmessages.h (g_assert, g_assert_not_reached,
index 250e5d5..a9a4dd4 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib/garray.h: Add parenthesis to protect macro
+       argument. Spotted by Sam Couter" <sam@topic.com.au>. (#86826)
+
 2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib/gmessages.h (g_assert, g_assert_not_reached,
index 250e5d5..a9a4dd4 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib/garray.h: Add parenthesis to protect macro
+       argument. Spotted by Sam Couter" <sam@topic.com.au>. (#86826)
+
 2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib/gmessages.h (g_assert, g_assert_not_reached,
index 250e5d5..a9a4dd4 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib/garray.h: Add parenthesis to protect macro
+       argument. Spotted by Sam Couter" <sam@topic.com.au>. (#86826)
+
 2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib/gmessages.h (g_assert, g_assert_not_reached,
index 250e5d5..a9a4dd4 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib/garray.h: Add parenthesis to protect macro
+       argument. Spotted by Sam Couter" <sam@topic.com.au>. (#86826)
+
 2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib/gmessages.h (g_assert, g_assert_not_reached,
index 250e5d5..a9a4dd4 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib/garray.h: Add parenthesis to protect macro
+       argument. Spotted by Sam Couter" <sam@topic.com.au>. (#86826)
+
 2002-06-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * glib/gmessages.h (g_assert, g_assert_not_reached,
index 56b3937..8042183 100644 (file)
@@ -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,