(SCM_CELL_OBJECT_LOC): use SCM_GC_CELL_OBJECT to prevent
authorHan-Wen Nienhuys <hanwen@lilypond.org>
Wed, 26 May 2004 21:15:30 +0000 (21:15 +0000)
committerHan-Wen Nienhuys <hanwen@lilypond.org>
Wed, 26 May 2004 21:15:30 +0000 (21:15 +0000)
compound expression as lvalue errors.

libguile/ChangeLog
libguile/gc.h

index e5211a0..172e1f6 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-26  Han-Wen Nienhuys   <hanwen@xs4all.nl>
+
+       * gc.h (SCM_CELL_OBJECT_LOC): use SCM_GC_CELL_OBJECT to prevent
+       compound expression as lvalue errors.
+
 2004-05-24  Marius Vollmer  <mvo@zagadka.de>
 
        * dynwind.c (winder_mark): Use SCM_PACK to correctly convert the
index 34a7e7b..0dc40f6 100644 (file)
@@ -214,7 +214,7 @@ typedef unsigned long scm_t_c_bvec_long;
   (SCM_GC_SET_CELL_OBJECT ((x), 1, (v)))
 
 
-#define SCM_CELL_OBJECT_LOC(x, n) (&SCM_CELL_OBJECT ((x), (n)))
+#define SCM_CELL_OBJECT_LOC(x, n) (SCM_VALIDATE_CELL((x), &SCM_GC_CELL_OBJECT ((x), (n))))
 #define SCM_CARLOC(x)             (SCM_CELL_OBJECT_LOC ((x), 0))
 #define SCM_CDRLOC(x)             (SCM_CELL_OBJECT_LOC ((x), 1))