Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4115d3f7
Commit
4115d3f7
authored
Feb 03, 1996
by
Richard M. Stallman
Browse files
(VECSIZE): Round up when dividing.
parent
407d2741
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/lisp.h
src/lisp.h
+4
-3
No files found.
src/lisp.h
View file @
4115d3f7
...
...
@@ -550,9 +550,10 @@ struct Lisp_String
};
/* If a struct is made to look like a vector, this macro returns the length
of that vector. */
#define VECSIZE(type) ((sizeof (type) - (sizeof (struct Lisp_Vector) \
- sizeof (Lisp_Object))) \
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 */
\
/ sizeof (Lisp_Object))
struct
Lisp_Vector
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment