[svn-r16218] Merging trunk 16217

Bug fix
PG compiler complains about array out of bounds (a rank of zero was not checked)
Adding a scalar dataset to the test generator program. this case is run on a previous existing run, the case was added to 2 existing files

Tested: windows, linux
This commit is contained in:
Pedro Vicente Nunes
2008-12-23 10:52:22 -05:00
parent fdcd0fb59f
commit 2a6e4d4e43
6 changed files with 2100 additions and 2010 deletions

View File

@@ -210,13 +210,17 @@ hsize_t diff_array( void *_mem1,
/* get the size. */
size = H5Tget_size( m_type );
acc[rank-1]=1;
for(j=(rank-2); j>=0; j--)
if ( rank > 0 )
{
acc[j]=acc[j+1]*dims[j+1];
acc[rank-1]=1;
for(j=(rank-2); j>=0; j--)
{
acc[j]=acc[j+1]*dims[j+1];
}
for ( j = 0; j < rank; j++)
pos[j]=0;
}
for ( j = 0; j < rank; j++)
pos[j]=0;
if(H5Tis_variable_str(m_type))
{
@@ -5574,6 +5578,10 @@ void print_pos( int *ph, /* print header */
}
parallel_print("]" );
}
else
{
parallel_print(" ");
}
}
/*-------------------------------------------------------------------------