summaryrefslogtreecommitdiffstats
path: root/src/H5C.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5C.c')
-rw-r--r--src/H5C.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5C.c b/src/H5C.c
index 2d5ebe5..05686dd 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -269,7 +269,10 @@ H5Cget_class (hid_t template)
FUNC_ENTER (H5Cget_class, H5C_NO_CLASS);
if ((group = H5Aatom_group (template))<0 ||
- group<H5_TEMPLATE_0 || group>=H5_TEMPLATE_MAX) {
+#ifndef NDEBUG
+ group>=H5_TEMPLATE_MAX ||
+#endif
+ group<H5_TEMPLATE_0) {
HRETURN_ERROR (H5E_ATOM, H5E_BADATOM, H5C_NO_CLASS, "not a template");
}