You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-chemistry/molmol/files/cast.patch

22 lines
519 B

diff --git a/src/data/DataDist.c b/src/data/DataDist.c
index 7f7121f..18eef33 100644
--- a/src/data/DataDist.c
+++ b/src/data/DataDist.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <hashtab.h>
@@ -89,7 +90,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