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
e46bb31a
Commit
e46bb31a
authored
Jun 08, 2011
by
Paul Eggert
Browse files
* alloc.c (allocate_pseudovector): Don't use EMACS_INT when int would do.
parent
6349ae4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
src/ChangeLog
src/ChangeLog
+1
-0
src/alloc.c
src/alloc.c
+1
-1
No files found.
src/ChangeLog
View file @
e46bb31a
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
(inhibit_garbage_collection): Set gc_cons_threshold to max value.
(inhibit_garbage_collection): Set gc_cons_threshold to max value.
Previously, this ceilinged at INT_MAX, but that doesn't work on
Previously, this ceilinged at INT_MAX, but that doesn't work on
64-bit machines.
64-bit machines.
(allocate_pseudovector): Don't use EMACS_INT when int would do.
* alloc.c (Fmake_bool_vector): Don't assume vector size fits in int.
* alloc.c (Fmake_bool_vector): Don't assume vector size fits in int.
(allocate_vectorlike): Check for ptrdiff_t overflow.
(allocate_vectorlike): Check for ptrdiff_t overflow.
...
...
src/alloc.c
View file @
e46bb31a
...
@@ -2832,7 +2832,7 @@ struct Lisp_Vector *
...
@@ -2832,7 +2832,7 @@ struct Lisp_Vector *
allocate_pseudovector
(
int
memlen
,
int
lisplen
,
EMACS_INT
tag
)
allocate_pseudovector
(
int
memlen
,
int
lisplen
,
EMACS_INT
tag
)
{
{
struct
Lisp_Vector
*
v
=
allocate_vectorlike
(
memlen
);
struct
Lisp_Vector
*
v
=
allocate_vectorlike
(
memlen
);
EMACS_INT
i
;
int
i
;
/* Only the first lisplen slots will be traced normally by the GC. */
/* Only the first lisplen slots will be traced normally by the GC. */
for
(
i
=
0
;
i
<
lisplen
;
++
i
)
for
(
i
=
0
;
i
<
lisplen
;
++
i
)
...
...
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