From cb47f921d10d4be40989195eab4fdc259e1c3e42 Mon Sep 17 00:00:00 2001 From: corsepiu Date: Tue, 4 Mar 2008 12:49:47 +0000 Subject: [PATCH] - Add qhull-2003.1-alias.patch (BZ 432309) Thanks to Orion Poplawski (orion@cora.nwra.com). --- qhull-2003.1-alias.patch | 24 ++++++++++++++++++++++++ qhull.spec | 9 ++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 qhull-2003.1-alias.patch diff --git a/qhull-2003.1-alias.patch b/qhull-2003.1-alias.patch new file mode 100644 index 0000000..408ee82 --- /dev/null +++ b/qhull-2003.1-alias.patch @@ -0,0 +1,24 @@ +--- qhull-2003.1/src/qset.c.alias 2008-02-27 14:46:42.000000000 -0700 ++++ qhull-2003.1/src/qset.c 2008-02-28 16:44:20.000000000 -0700 +@@ -126,8 +126,7 @@ + + */ + void qh_setappend(setT **setp, void *newelem) { +- int *sizep; +- void **endp; ++ int *sizep, end_idx; + + if (!newelem) + return; +@@ -135,8 +134,9 @@ + qh_setlarger(setp); + sizep= SETsizeaddr_(*setp); + } +- *(endp= &((*setp)->e[(*sizep)++ - 1].p))= newelem; +- *(++endp)= NULL; ++ end_idx = (*sizep)++ - 1; ++ (*setp)->e[end_idx].p = newelem; ++ (*setp)->e[end_idx + 1].p = NULL; + } /* setappend */ + + /*- - 2003.1-10 +- Add qhull-2003.1-alias.patch (BZ 432309) + Thanks to Orion Poplawski (orion@cora.nwra.com). + * Sun Feb 10 2008 Ralf Corsépius - 2003.1-9 - Rebuild for gcc43.