# HG changeset patch # User Aidan Kehoe # Date 1265585661 0 # Node ID 4170f3809a2870c3a23b0398591e6255332a968c # Parent 788c38f20376aedb486f823b63f6d5490da3cd48 Cast correctly, Dynarr_verify, Dynarr_verify_mod, no ERROR_CHECK_STRUCTURES 2010-02-07 Aidan Kehoe * 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. diff -r 788c38f20376 -r 4170f3809a28 src/ChangeLog --- 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 + + * 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 * fileio.c (Finsert_file_contents_internal): diff -r 788c38f20376 -r 4170f3809a28 src/lisp.h --- 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 */