mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[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)
This commit is contained in:
parent
226ae23b7b
commit
233ef182ac
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user