From: | "Justin Lecher (jlec)" <jlec@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-chemistry/molmol/files: cast.patch |
Date: | Fri, 23 Apr 2010 14:19:44 |
Message-Id: | 20100423141941.C13D4317E1@corvid.gentoo.org |
1 | jlec 10/04/23 14:19:41 |
2 | |
3 | Added: cast.patch |
4 | Log: |
5 | fix instance of cast from pointer to integer of different size, stolen from fink |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sci-chemistry/molmol/files/cast.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molmol/files/cast.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molmol/files/cast.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: cast.patch |
15 | =================================================================== |
16 | diff --git a/src/data/DataDist.c b/src/data/DataDist.c |
17 | index 7f7121f..d303e9e 100644 |
18 | --- a/src/data/DataDist.c |
19 | +++ b/src/data/DataDist.c |
20 | @@ -89,7 +89,7 @@ hashInter(void *p, unsigned size) |
21 | { |
22 | TabEntryInter *entryP = p; |
23 | |
24 | - return ((unsigned) entryP->atom1P + (unsigned) entryP->atom2P) % size; |
25 | + return ((unsigned)(uintptr_t) entryP->atom1P + (unsigned)(uintptr_t) entryP->atom2P) % size; |
26 | } |
27 | |
28 | static int |