changeset 5005:4170f3809a28

Cast correctly, Dynarr_verify, Dynarr_verify_mod, no ERROR_CHECK_STRUCTURES 2010-02-07 Aidan Kehoe <kehoea@parhasard.net> * lisp.h (Dynarr_verify, Dynarr_verify_mod): If ERROR_CHECK_STRUCTURES is not defined, cast the argument in these two macros; fixes the g++ build.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 07 Feb 2010 23:34:21 +0000
parents 788c38f20376
children ecdc03ef6e12
files src/ChangeLog src/lisp.h
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Feb 07 23:31:50 2010 +0000
+++ b/src/ChangeLog	Sun Feb 07 23:34:21 2010 +0000
@@ -1,3 +1,9 @@
+2010-02-07  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* lisp.h (Dynarr_verify, Dynarr_verify_mod):
+	If ERROR_CHECK_STRUCTURES is not defined, cast the argument in
+	these two macros; fixes the g++ build.
+
 2010-02-07  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* fileio.c (Finsert_file_contents_internal):
--- a/src/lisp.h	Sun Feb 07 23:31:50 2010 +0000
+++ b/src/lisp.h	Sun Feb 07 23:34:21 2010 +0000
@@ -1859,8 +1859,8 @@
   dy->locked = 0;				\
 } while (0)
 #else
-#define Dynarr_verify(d) (d)
-#define Dynarr_verify_mod(d) (d)
+#define Dynarr_verify(d) ((Dynarr *) d)
+#define Dynarr_verify_mod(d) ((Dynarr *) d)
 #define Dynarr_lock(d) DO_NOTHING
 #define Dynarr_unlock(d) DO_NOTHING
 #endif /* ERROR_CHECK_STRUCTURES */