* [PATCH] Add cast in `make_vm' to silence compiler warning.
@ 2010-01-09 14:06 Thien-Thi Nguyen
0 siblings, 0 replies; only message in thread
From: Thien-Thi Nguyen @ 2010-01-09 14:06 UTC (permalink / raw)
To: bug-guile
As advertized...
thi
_______________________________________________________________________
From e08a92c5f21bab837ab051f5f1866cd066938262 Mon Sep 17 00:00:00 2001
From: Thien-Thi Nguyen <ttn@gnuvola.org>
Date: Sat, 9 Jan 2010 15:05:34 +0100
Subject: [PATCH] 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>
---
libguile/vm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libguile/vm.c b/libguile/vm.c
index 0da915b..9f4a2d8 100644
--- a/libguile/vm.c
+++ b/libguile/vm.c
@@ -346,8 +346,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. */
--
1.6.3.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-09 14:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-09 14:06 [PATCH] Add cast in `make_vm' to silence compiler warning Thien-Thi Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).