From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.bugs Subject: [PATCH] Add cast in `make_vm' to silence compiler warning. Date: Sat, 09 Jan 2010 15:06:20 +0100 Message-ID: <87tyuvmkyr.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263046193 3890 80.91.229.12 (9 Jan 2010 14:09:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jan 2010 14:09:53 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Jan 09 15:09:46 2010 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NTc0f-00031d-QC for guile-bugs@m.gmane.org; Sat, 09 Jan 2010 15:09:46 +0100 Original-Received: from localhost ([127.0.0.1]:50046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTc0g-0000UL-7z for guile-bugs@m.gmane.org; Sat, 09 Jan 2010 09:09:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTbzq-0008Sh-E2 for bug-guile@gnu.org; Sat, 09 Jan 2010 09:08:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTbzp-0008Rx-0Q for bug-guile@gnu.org; Sat, 09 Jan 2010 09:08:53 -0500 Original-Received: from [199.232.76.173] (port=44248 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTbzo-0008Rk-Lw for bug-guile@gnu.org; Sat, 09 Jan 2010 09:08:52 -0500 Original-Received: from smtp-out26.alice.it ([85.33.2.26]:3995) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NTbzo-0007dE-4j for bug-guile@gnu.org; Sat, 09 Jan 2010 09:08:52 -0500 Original-Received: from FBCMMO01.fbc.local ([192.168.68.195]) by smtp-out26.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Jan 2010 15:08:46 +0100 Original-Received: from FBCMCL01B02.fbc.local ([192.168.69.83]) by FBCMMO01.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Jan 2010 15:08:46 +0100 Original-Received: from ambire.localdomain ([95.236.25.135]) by FBCMCL01B02.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sat, 9 Jan 2010 15:08:46 +0100 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1NTbxM-0007QD-Qy for bug-guile@gnu.org; Sat, 09 Jan 2010 15:06:20 +0100 X-OriginalArrivalTime: 09 Jan 2010 14:08:46.0971 (UTC) FILETIME=[429314B0:01CA9135] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4430 Archived-At: As advertized... thi _______________________________________________________________________ >From e08a92c5f21bab837ab051f5f1866cd066938262 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen 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 --- 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