diff options
| author | Richard M. Stallman | 1996-02-03 02:33:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-02-03 02:33:12 +0000 |
| commit | 4115d3f71e0c6ae8844ab8c8d502746e4a4c3cfb (patch) | |
| tree | 8cb39f982b702cb7864f8803f247973dcf070f73 /src | |
| parent | 407d2741ad5f57ab45450b147a92b4401c448c15 (diff) | |
| download | emacs-4115d3f71e0c6ae8844ab8c8d502746e4a4c3cfb.tar.gz emacs-4115d3f71e0c6ae8844ab8c8d502746e4a4c3cfb.zip | |
(VECSIZE): Round up when dividing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lisp.h b/src/lisp.h index 9fe189f36f5..ce48018d1ce 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -550,9 +550,10 @@ struct Lisp_String | |||
| 550 | }; | 550 | }; |
| 551 | 551 | ||
| 552 | /* If a struct is made to look like a vector, this macro returns the length | 552 | /* If a struct is made to look like a vector, this macro returns the length |
| 553 | of that vector. */ | 553 | of the shortest vector that would hold that struct. */ |
| 554 | #define VECSIZE(type) ((sizeof (type) - (sizeof (struct Lisp_Vector) \ | 554 | #define VECSIZE(type) ((sizeof (type) - (sizeof (struct Lisp_Vector) \ |
| 555 | - sizeof (Lisp_Object))) \ | 555 | - sizeof (Lisp_Object)) \ |
| 556 | + sizeof(Lisp_Object) - 1) /* round up */ \ | ||
| 556 | / sizeof (Lisp_Object)) | 557 | / sizeof (Lisp_Object)) |
| 557 | 558 | ||
| 558 | struct Lisp_Vector | 559 | struct Lisp_Vector |