summaryrefslogtreecommitdiffstats
path: root/src/H5Opline.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-02-18 12:16:27 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-02-18 12:16:27 (GMT)
commit5655953a2adcdcfe2f0d5599a52d36fbea405817 (patch)
tree352bf3ad7afc1b1277ad9218c33c8ad3aa06f852 /src/H5Opline.c
parent7ff7845b3a18a3e32fbf84f089f4a01ba9329274 (diff)
downloadhdf5-5655953a2adcdcfe2f0d5599a52d36fbea405817.zip
hdf5-5655953a2adcdcfe2f0d5599a52d36fbea405817.tar.gz
hdf5-5655953a2adcdcfe2f0d5599a52d36fbea405817.tar.bz2
[svn-r6415] Purpose:
Code cleanup Description: Changed hard-coded magic number (32) for the maximum number of filters in a filter pipeline to use a symbolic constant (H5Z_MAX_NFILTERS) instead. This limit could (and probably should) be removed to allow an unlimited number of filters in a pipeline. Platforms tested: FreeBSD 4.7 (sleipnir)
Diffstat (limited to 'src/H5Opline.c')
-rw-r--r--src/H5Opline.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5Opline.c b/src/H5Opline.c
index a8d1426..3bdffe7 100644
--- a/src/H5Opline.c
+++ b/src/H5Opline.c
@@ -27,8 +27,10 @@
#include "H5MMprivate.h"
#include "H5Opkg.h" /* Object header functions */
-/* Interface initialization */
+/* Pablo mask */
#define PABLO_MASK H5O_pline_mask
+
+/* Interface initialization */
static int interface_initialize_g = 0;
#define INTERFACE_INIT NULL
@@ -101,7 +103,7 @@ H5O_pline_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p,
if (version!=H5O_PLINE_VERSION)
HGOTO_ERROR(H5E_PLINE, H5E_CANTLOAD, NULL, "bad version number for filter pipeline message");
pline->nfilters = *p++;
- if (pline->nfilters>32)
+ if (pline->nfilters>H5Z_MAX_NFILTERS)
HGOTO_ERROR(H5E_PLINE, H5E_CANTLOAD, NULL, "filter pipeline message has too many filters");
p += 6; /*reserved*/
pline->nalloc = pline->nfilters;