summaryrefslogtreecommitdiffstats
path: root/test/set_extent.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-04-26 12:38:50 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-04-26 12:38:50 (GMT)
commit80043b04c036548fe4c47a1fc5acb8a544fbcb8d (patch)
tree1a9775bda29a35012d06bbc9289875ed364bb2ce /test/set_extent.c
parentbb07809e41dea410814dd1233ad6db3f2312dbde (diff)
downloadhdf5-80043b04c036548fe4c47a1fc5acb8a544fbcb8d.zip
hdf5-80043b04c036548fe4c47a1fc5acb8a544fbcb8d.tar.gz
hdf5-80043b04c036548fe4c47a1fc5acb8a544fbcb8d.tar.bz2
[svn-r5271] Purpose:
Bug Fix. Description: When the fill value for a dataset is not set, the size is set to zero, causing problems with filling unused areas in previously defined chunks (i.e. when the dataset shrinks in size) Solution: Use the size of the elements in the dataset directly, instead of relying on the size of the fill value (which must be the same size). Platforms tested: FreeBSD 4.5 (sleipnir)
Diffstat (limited to 'test/set_extent.c')
-rw-r--r--test/set_extent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/set_extent.c b/test/set_extent.c
index bae973f..c6fabd8 100644
--- a/test/set_extent.c
+++ b/test/set_extent.c
@@ -40,7 +40,7 @@ int main( void )
int buf1[ 70 ][ 70 ];
int buf2[ 90 ][ 90 ];
int i, j, n = 0;
- int fillvalue = 0; /* Fill value for the dataset */
+ int fillvalue = 1; /* Fill value for the dataset */
for( i = 0; i < 90; i++ )