From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1O5JjM-00053b-Gl for garchives@archives.gentoo.org; Fri, 23 Apr 2010 14:19:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 223FFE08EC; Fri, 23 Apr 2010 14:19:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E2252E08AF for ; Fri, 23 Apr 2010 14:19:42 +0000 (UTC) Received: from corvid.gentoo.org (corvid.gentoo.org [208.92.234.79]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 81A5C1B4051 for ; Fri, 23 Apr 2010 14:19:42 +0000 (UTC) Received: by corvid.gentoo.org (Postfix, from userid 2264) id C13D4317E1; Fri, 23 Apr 2010 14:19:41 +0000 (UTC) From: "Justin Lecher (jlec)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, jlec@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/molmol/files: cast.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: cast.patch X-VCS-Directories: sci-chemistry/molmol/files X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher Content-Type: text/plain; charset=utf8 Message-Id: <20100423141941.C13D4317E1@corvid.gentoo.org> Date: Fri, 23 Apr 2010 14:19:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 4be55adf-fbcd-44d1-8d20-902e0c772131 X-Archives-Hash: a867c0d49c4dc5983eeae7032f656d7a jlec 10/04/23 14:19:41 Added: cast.patch Log: fix instance of cast from pointer to integer of different size, stolen = from fink (Portage version: 2.2_rc67/cvs/Linux x86_64) Revision Changes Path 1.1 sci-chemistry/molmol/files/cast.patch file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molm= ol/files/cast.patch?rev=3D1.1&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molm= ol/files/cast.patch?rev=3D1.1&content-type=3Dtext/plain Index: cast.patch =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D diff --git a/src/data/DataDist.c b/src/data/DataDist.c index 7f7121f..d303e9e 100644 --- a/src/data/DataDist.c +++ b/src/data/DataDist.c @@ -89,7 +89,7 @@ hashInter(void *p, unsigned size) { TabEntryInter *entryP =3D p; =20 - return ((unsigned) entryP->atom1P + (unsigned) entryP->atom2P) % size; + return ((unsigned)(uintptr_t) entryP->atom1P + (unsigned)(uintptr_t) e= ntryP->atom2P) % size; } =20 static int