Return-Path: Delivered-To: apmail-lucene-lucy-dev-archive@minotaur.apache.org Received: (qmail 68316 invoked from network); 27 Nov 2009 15:04:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Nov 2009 15:04:58 -0000 Received: (qmail 14939 invoked by uid 500); 27 Nov 2009 15:04:58 -0000 Delivered-To: apmail-lucene-lucy-dev-archive@lucene.apache.org Received: (qmail 14871 invoked by uid 500); 27 Nov 2009 15:04:58 -0000 Mailing-List: contact lucy-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-dev@lucene.apache.org Delivered-To: mailing list lucy-dev@lucene.apache.org Received: (qmail 14861 invoked by uid 99); 27 Nov 2009 15:04:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Nov 2009 15:04:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.98.116.241] (HELO pekmac.localhost) (209.98.116.241) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Nov 2009 15:04:48 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by pekmac.localhost (Postfix) with ESMTP id D06841CF372 for ; Fri, 27 Nov 2009 09:04:27 -0600 (CST) Message-ID: <4B0FEA7B.4030008@peknet.com> Date: Fri, 27 Nov 2009 09:04:27 -0600 From: Peter Karman User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: lucy-dev@lucene.apache.org Subject: quiet gcc warnings X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Not sure that this merits a JIRA ticket, but this little patch quiets a gcc warning: Index: core/Lucy/Object/Obj.c =================================================================== --- core/Lucy/Object/Obj.c (revision 884883) +++ core/Lucy/Object/Obj.c (working copy) @@ -60,7 +60,7 @@ #if (SIZEOF_PTR == 4) return CB_newf("%o@0x%x32", Obj_Get_Class_Name(self), self); #elif (SIZEOF_PTR == 8) - size_t address = self; + size_t address = (size_t)self; u32_t address_hi = address >> 32; u32_t address_lo = address & 0xFFFFFFFF; return CB_newf("%o@0x%x32%x32", Obj_Get_Class_Name(self), address_hi, -- Peter Karman . http://peknet.com/ . peter@peknet.com