aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-05 00:22:54 +0000
committerRichard M. Stallman1997-07-05 00:22:54 +0000
commit74d8433449b6f0d26f77655ed594ce80a405e295 (patch)
treef3aee05befec8edd920428e6f7b498050d7d0571 /src/alloc.c
parentc10f84fbab981c6a5ef71b7f1be84e7271f8a88d (diff)
downloademacs-74d8433449b6f0d26f77655ed594ce80a405e295.tar.gz
emacs-74d8433449b6f0d26f77655ed594ce80a405e295.zip
(memory_full): Pass Qnil to Fsignal for ERROR_SYMBOL.
Fix bugs with inappropriate mixing of Lisp_Object with int.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/alloc.c b/src/alloc.c
index ed57954cf17..b6480a63c81 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -237,7 +237,7 @@ memory_full ()
237 /* This used to call error, but if we've run out of memory, we could get 237 /* This used to call error, but if we've run out of memory, we could get
238 infinite recursion trying to build the string. */ 238 infinite recursion trying to build the string. */
239 while (1) 239 while (1)
240 Fsignal (Qerror, memory_signal_data); 240 Fsignal (Qnil, memory_signal_data);
241} 241}
242 242
243/* Called if we can't allocate relocatable space for a buffer. */ 243/* Called if we can't allocate relocatable space for a buffer. */
@@ -514,7 +514,7 @@ mark_interval_tree (tree)
514#define MARK_INTERVAL_TREE(i) \ 514#define MARK_INTERVAL_TREE(i) \
515 do { \ 515 do { \
516 if (!NULL_INTERVAL_P (i) \ 516 if (!NULL_INTERVAL_P (i) \
517 && ! XMARKBIT ((Lisp_Object) i->parent)) \ 517 && ! XMARKBIT (*(Lisp_Object *) &i->parent)) \
518 mark_interval_tree (i); \ 518 mark_interval_tree (i); \
519 } while (0) 519 } while (0)
520 520
@@ -2264,7 +2264,7 @@ gc_sweep ()
2264 case Lisp_Misc_Free: 2264 case Lisp_Misc_Free:
2265 /* If the object was already free, keep it 2265 /* If the object was already free, keep it
2266 on the free list. */ 2266 on the free list. */
2267 markword = &already_free; 2267 markword = (Lisp_Object *) &already_free;
2268 break; 2268 break;
2269 default: 2269 default:
2270 markword = 0; 2270 markword = 0;