summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-10-02 16:57:56 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-10-02 16:57:56 (GMT)
commitd808a5b53a822a945eff7ff2ea3f77941e9e7ba2 (patch)
treebb104e2b49d09863f8d8664f50e27b00fe209af8 /src/H5D.c
parent3f844d7ba1cd9b14e4ec9f4ab2f14f316dd9fbf3 (diff)
downloadhdf5-d808a5b53a822a945eff7ff2ea3f77941e9e7ba2.zip
hdf5-d808a5b53a822a945eff7ff2ea3f77941e9e7ba2.tar.gz
hdf5-d808a5b53a822a945eff7ff2ea3f77941e9e7ba2.tar.bz2
[svn-r4508] Purpose:
Document bug fix. Description: When reading or writing to chunked datasets and the data needed datatype conversion, and the amount of data was more than one conversion buffer, data in the conversion buffer was getting corrupted. Solution: Corrected error in advancing buffer pointer where it was being advanced by the number of elements instead of the number of bytes. Platforms tested: FreeBSD 4.4 (hawkwind)
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 633387f..c82c89a 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -2049,13 +2049,13 @@ printf("%s: check 2.0, src_type_size=%d, dst_type_size=%d, target_size=%d\n",FUN
#ifdef QAK
{
int i;
- int *b;
+ float *b;
/* if(qak_debug) { */
- b=tconv_buf;
printf("\ntconv_buf:");
- for (i=0; i<smine_nelmts; i++,b++) {
- printf("(%d)%d ",i,(int)*b);
+ b=(float*)(tconv_buf+sizeof(float)*(32770-8));
+ for (i=(32770-8); i<32770; i++,b++) {
+ printf("(%d)%f ",i,(float)*b);
}
printf("\n");
/* } */
@@ -2097,6 +2097,21 @@ printf("%s: check 2.0, src_type_size=%d, dst_type_size=%d, target_size=%d\n",FUN
#ifdef QAK
printf("%s: check 8.0\n",FUNC);
+#ifdef QAK
+ {
+ int i;
+ double *b;
+
+ /* if(qak_debug) { */
+ printf("\ntconv_buf:");
+ b=(double*)(tconv_buf+sizeof(double)*(32770-8));
+ for (i=(32770-8); i<32770; i++,b++) {
+ printf("(%d)%f ",i,(double)*b);
+ }
+ printf("\n");
+ /* } */
+ }
+#endif /* QAK */
#endif
/*