mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +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:
parent
fdcb2b82d7
commit
4168aa4675
1 changed files with 2 additions and 2 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue