From 233ef182accb64bad259c6c5971e1daaf5585253 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 27 Nov 2001 13:02:00 -0500 Subject: [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) --- src/H5Tconv.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v0.12