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 250e5d532ac9afefe8558967153be23505c4e054..a9a4dd477df535a02e05ceac8bef6c49a19df9b4 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 250e5d532ac9afefe8558967153be23505c4e054..a9a4dd477df535a02e05ceac8bef6c49a19df9b4 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 250e5d532ac9afefe8558967153be23505c4e054..a9a4dd477df535a02e05ceac8bef6c49a19df9b4 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 250e5d532ac9afefe8558967153be23505c4e054..a9a4dd477df535a02e05ceac8bef6c49a19df9b4 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 250e5d532ac9afefe8558967153be23505c4e054..a9a4dd477df535a02e05ceac8bef6c49a19df9b4 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 250e5d532ac9afefe8558967153be23505c4e054..a9a4dd477df535a02e05ceac8bef6c49a19df9b4 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 250e5d532ac9afefe8558967153be23505c4e054..a9a4dd477df535a02e05ceac8bef6c49a19df9b4 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 56b3937fef07a48a95f6c696c7ed1177de8782f3..80421830e8856f43f9a46e13a052d1a995b11268 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,