diff options
Diffstat (limited to 'sci-chemistry/molmol/files/cast.patch')
-rw-r--r-- | sci-chemistry/molmol/files/cast.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sci-chemistry/molmol/files/cast.patch b/sci-chemistry/molmol/files/cast.patch new file mode 100644 index 000000000000..643b92d2a4cf --- /dev/null +++ b/sci-chemistry/molmol/files/cast.patch @@ -0,0 +1,13 @@ +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 = p; + +- return ((unsigned) entryP->atom1P + (unsigned) entryP->atom2P) % size; ++ return ((unsigned)(uintptr_t) entryP->atom1P + (unsigned)(uintptr_t) entryP->atom2P) % size; + } + + static int |