# HG changeset patch # User michaels # Date 1061287090 0 # Node ID 750821e2c014b9ec440dfc6deb424176eedcd9c7 # Parent baca156a450bd35910354f3cee1bd4f7973d25b0 [xemacs-hg @ 2003-08-19 09:58:08 by michaels] 2003-08-19 René Kyllingstad * alloc.c (kkcc_gc_stack_init): (kkcc_gc_stack_realloc): Missing casts for the return value of malloc and realloc. diff -r baca156a450b -r 750821e2c014 src/ChangeLog --- a/src/ChangeLog Tue Aug 19 02:11:49 2003 +0000 +++ b/src/ChangeLog Tue Aug 19 09:58:10 2003 +0000 @@ -1,3 +1,9 @@ +2003-08-19 René Kyllingstad + + * alloc.c (kkcc_gc_stack_init): + (kkcc_gc_stack_realloc): Missing casts for the return value of + malloc and realloc. + 2003-08-18 Jerry James * Makefile.in.in (export_lib): New. diff -r baca156a450b -r 750821e2c014 src/alloc.c --- a/src/alloc.c Tue Aug 19 02:11:49 2003 +0000 +++ b/src/alloc.c Tue Aug 19 09:58:10 2003 +0000 @@ -2969,7 +2969,7 @@ kkcc_gc_stack_init (void) { kkcc_gc_stack_size = KKCC_INIT_GC_STACK_SIZE; - kkcc_gc_stack_ptr = + kkcc_gc_stack_ptr = (kkcc_gc_stack_entry *) malloc (kkcc_gc_stack_size * sizeof (kkcc_gc_stack_entry)); if (!kkcc_gc_stack_ptr) { @@ -2993,7 +2993,7 @@ kkcc_gc_stack_realloc (void) { kkcc_gc_stack_size *= 2; - kkcc_gc_stack_ptr = + kkcc_gc_stack_ptr = (kkcc_gc_stack_entry *) realloc (kkcc_gc_stack_ptr, kkcc_gc_stack_size * sizeof (kkcc_gc_stack_entry)); if (!kkcc_gc_stack_ptr)