diff options
author | joerg <joerg@pkgsrc.org> | 2012-04-17 17:41:40 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-04-17 17:41:40 +0000 |
commit | 5fd737bbe731913c38a554f993385c2c496d5620 (patch) | |
tree | 727ad0dd963e82402a165baf7189422f3b16f9a5 /devel/cmph | |
parent | ea29533b1373ab07341bdbfb7a4841de19476a93 (diff) | |
download | pkgsrc-5fd737bbe731913c38a554f993385c2c496d5620.tar.gz |
Make loop finite. Bump revision.
Diffstat (limited to 'devel/cmph')
-rw-r--r-- | devel/cmph/Makefile | 3 | ||||
-rw-r--r-- | devel/cmph/distinfo | 3 | ||||
-rw-r--r-- | devel/cmph/patches/patch-src_fch__buckets.c | 13 |
3 files changed, 17 insertions, 2 deletions
diff --git a/devel/cmph/Makefile b/devel/cmph/Makefile index d8b0f391d04..68498a880dc 100644 --- a/devel/cmph/Makefile +++ b/devel/cmph/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.2 2011/05/22 11:33:31 alnsn Exp $ +# $NetBSD: Makefile,v 1.3 2012/04/17 17:41:40 joerg Exp $ DISTNAME= cmph-1.1 +PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cmph/} diff --git a/devel/cmph/distinfo b/devel/cmph/distinfo index 87875bf72e2..38fb924637c 100644 --- a/devel/cmph/distinfo +++ b/devel/cmph/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2011/05/22 11:33:31 alnsn Exp $ +$NetBSD: distinfo,v 1.3 2012/04/17 17:41:40 joerg Exp $ SHA1 (cmph-1.1.tar.gz) = 005b17395451284cfbc9d4b3d65c7f64a2a97997 RMD160 (cmph-1.1.tar.gz) = 55392941671d7aa5ade26e8d2f62ea05cc47e543 Size (cmph-1.1.tar.gz) = 425150 bytes SHA1 (patch-src_brz.c) = 771589ac40e11240a0746f19cb63490d828c61db +SHA1 (patch-src_fch__buckets.c) = 847906f8278ea8068a0897259e7a1bdfb6634d9b diff --git a/devel/cmph/patches/patch-src_fch__buckets.c b/devel/cmph/patches/patch-src_fch__buckets.c new file mode 100644 index 00000000000..656ae029d3c --- /dev/null +++ b/devel/cmph/patches/patch-src_fch__buckets.c @@ -0,0 +1,13 @@ +$NetBSD: patch-src_fch__buckets.c,v 1.1 2012/04/17 17:41:40 joerg Exp $ + +--- src/fch_buckets.c.orig 2012-04-17 16:58:34.000000000 +0000 ++++ src/fch_buckets.c +@@ -183,7 +183,7 @@ cmph_uint32 * fch_buckets_get_indexes_so + // calculating offset considering a decreasing order of buckets size. + value = nbuckets_size[buckets->max_size]; + nbuckets_size[buckets->max_size] = sum; +- for(i = (int)buckets->max_size - 1; i >= 0; i--) ++ for(i = buckets->max_size; i-- > 0; ) + { + sum += value; + value = nbuckets_size[i]; |