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
54defd0d
Commit
54defd0d
authored
Dec 07, 2001
by
Andreas Schwab
Browse files
(inhibit_garbage_collection): Don't exceed value an int can hold.
parent
9d113d9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/alloc.c
src/alloc.c
+3
-1
No files found.
src/alloc.c
View file @
54defd0d
...
...
@@ -4012,7 +4012,9 @@ int
inhibit_garbage_collection
()
{
int
count
=
specpdl_ptr
-
specpdl
;
specbind
(
Qgc_cons_threshold
,
make_number
(
MOST_POSITIVE_FIXNUM
));
int
nbits
=
min
(
VALBITS
,
BITS_PER_INT
);
specbind
(
Qgc_cons_threshold
,
make_number
(((
EMACS_INT
)
1
<<
(
nbits
-
1
))
-
1
));
return
count
;
}
...
...
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