Skip to content
Snippets Groups Projects
Commit eaff7f87 authored by Brad Barber's avatar Brad Barber
Browse files

qhull 2009.1.1 2010/01/09 Apply patch project/patch/qhull-2003.1/poly.c-gh_gethash.patch

parent 0b1c2aa8
No related branches found
No related tags found
No related merge requests found
......@@ -403,6 +403,7 @@ unsigned qh_gethash (int hashsize, setT *set, int size, int firstindex, void *sk
void **elemp= SETelemaddr_(set, firstindex, void);
ptr_intT hash = 0, elem;
int i;
unsigned result;
switch (size-firstindex) {
case 1:
......@@ -441,9 +442,10 @@ unsigned qh_gethash (int hashsize, setT *set, int size, int firstindex, void *sk
}while(*elemp);
break;
}
hash %= (ptr_intT) hashsize;
/* hash= 0; for debugging purposes */
return hash;
result= (unsigned)hash;
result %= (unsigned)hashsize;
/* result= 0; for debugging purposes */
return result;
} /* gethash */
/*-<a href="qh-poly.htm#TOC"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment