summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-11-27 18:02:00 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-11-27 18:02:00 (GMT)
commit233ef182accb64bad259c6c5971e1daaf5585253 (patch)
tree03639880cc4af0c8a22f8e239e92c9fe13f7c29d
parent226ae23b7b5bf65e4adcc3837832f3865d2effbc (diff)
downloadhdf5-233ef182accb64bad259c6c5971e1daaf5585253.zip
hdf5-233ef182accb64bad259c6c5971e1daaf5585253.tar.gz
hdf5-233ef182accb64bad259c6c5971e1daaf5585253.tar.bz2
[svn-r4645] Purpose:
Bug Fix Description: Replace an 'if' statement taken out in commit earlier today which was necessary for routing around endian conversions when zero elements were converted. Platforms tested: IRIX64 6.5 (modi4)
-rw-r--r--src/H5Tconv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index b9b94e9..21123fb 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -543,6 +543,7 @@ H5T_conv_order(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts,
buf_stride = buf_stride ? buf_stride : src->size;
/* Optimize for popular sizes */
+ if(nelmts>0) {
switch(md) {
case 1: /* Swap 2-byte objects */
#ifdef NO_DUFFS_DEVICE
@@ -1069,6 +1070,7 @@ H5T_conv_order(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts,
#endif /* NO_DUFFS_DEVICE */
break;
} /* end switch */
+ } /* end if */
break;
case H5T_CONV_FREE: