summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-08-19 01:01:15 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-08-19 01:01:15 (GMT)
commit45d515096004c89043f2a3f0e500cb2db01a1796 (patch)
treedff3c5bd3f51d8dee18b4064a35ab1371a618336 /src
parent22f2680e87757fa0520d801a6a8d310db54908b1 (diff)
downloadhdf5-45d515096004c89043f2a3f0e500cb2db01a1796.zip
hdf5-45d515096004c89043f2a3f0e500cb2db01a1796.tar.gz
hdf5-45d515096004c89043f2a3f0e500cb2db01a1796.tar.bz2
[svn-r4391] Purpose:
Bug fix. Description: Byte swapping algorithm wasn't converting the last 8 elements correctly. Solution: Used correct variable... :-) Platforms tested: FreeBSD 4.4 (hawkwind)
Diffstat (limited to 'src')
-rw-r--r--src/H5Tconv.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index 3f9890b..f7cfc20 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -475,7 +475,9 @@ H5T_conv_order(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts,
uint8_t tmp;
H5T_t *src = NULL;
H5T_t *dst = NULL;
+#ifdef NO_DUFFS_DEVICE
hsize_t i;
+#endif /* NO_DUFFS_DEVICE */
size_t j, md;
FUNC_ENTER(H5T_conv_order, FAIL);
@@ -552,7 +554,7 @@ H5T_conv_order(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts,
{
size_t duff_count = (nelmts + 7) / 8;
- switch (duff_count % 8)
+ switch (nelmts % 8)
{
case 0:
do
@@ -628,7 +630,7 @@ H5T_conv_order(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts,
{
size_t duff_count = (nelmts + 7) / 8;
- switch (duff_count % 8)
+ switch (nelmts % 8)
{
case 0:
do
@@ -770,7 +772,7 @@ H5T_conv_order(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts,
{
size_t duff_count = (nelmts + 7) / 8;
- switch (duff_count % 8)
+ switch (nelmts % 8)
{
case 0:
do
@@ -978,7 +980,7 @@ H5T_conv_order(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts,
{
size_t duff_count = (nelmts + 7) / 8;
- switch (duff_count % 8)
+ switch (nelmts % 8)
{
case 0:
do