# HG changeset patch
# User Andreas Schwab <schwab@suse.de>
# Date 1177862877 0
# Node ID 6601f854ccc95c5382a59071c191895f0cdbe430
# Parent  a4280cf255549b24638d0889568cf58d921f835d
(VECSIZE): Use OFFSETOF.

diff -r a4280cf25554 -r 6601f854ccc9 src/lisp.h
--- a/src/lisp.h	Sun Apr 29 14:43:28 2007 +0000
+++ b/src/lisp.h	Sun Apr 29 16:07:57 2007 +0000
@@ -735,9 +735,9 @@
 
 /* If a struct is made to look like a vector, this macro returns the length
    of the shortest vector that would hold that struct.  */
-#define VECSIZE(type) ((sizeof (type) - (sizeof (struct Lisp_Vector)  \
-                                         - sizeof (Lisp_Object))      \
-                        + sizeof(Lisp_Object) - 1) /* round up */     \
+#define VECSIZE(type) ((sizeof (type)					  \
+			- OFFSETOF (struct Lisp_Vector, contents[0])      \
+                        + sizeof(Lisp_Object) - 1) /* round up */	  \
 		       / sizeof (Lisp_Object))
 
 /* Like VECSIZE, but used when the pseudo-vector has non-Lisp_Object fields