1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-30 06:50:31 +02:00

Add cast in `make_vm' to silence compiler warning.

* libguile/vm.c (make_vm): Add cast for .stack_base assignment.

Signed-off-by: Thien-Thi Nguyen <ttn@gnuvola.org>
This commit is contained in:
Thien-Thi Nguyen 2010-01-09 15:06:20 +01:00 committed by Andy Wingo
parent fdcb2b82d7
commit 4168aa4675

View file

@ -313,8 +313,8 @@ make_vm (void)
vp->stack_size = VM_DEFAULT_STACK_SIZE;
#ifdef VM_ENABLE_PRECISE_STACK_GC_SCAN
vp->stack_base = GC_generic_malloc (vp->stack_size * sizeof (SCM),
vm_stack_gc_kind);
vp->stack_base = (SCM *)
GC_generic_malloc (vp->stack_size * sizeof (SCM), vm_stack_gc_kind);
/* Keep a pointer to VP so that `vm_stack_mark ()' can know what the stack
top is. */