mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r4196] Purpose:
Bug Fix Description: Using a 'long long' type (i.e. hsize_t) in a switch statement is apparently not allowed by the HP/UX 10.20 system compiler and causes the compile to fail. Solution: Cast the variable to a size_t for the switch. Platforms tested: HP/UX 10.20 (sangamon)
This commit is contained in:
parent
7c706d9d14
commit
5172c6aa70
@ -2834,7 +2834,11 @@ for(i=0; i<ndims; i++)
|
||||
} /* end while */
|
||||
#else /* NO_DUFFS_DEVICE */
|
||||
duffs_index = (fast_dim_count + 7) / 8;
|
||||
switch (fast_dim_count % 8) {
|
||||
/* The following size_t cast is required on HPUX 10.20 in
|
||||
* order to make the system compuiler happy. It can be
|
||||
* removed when we are no longer supporting that platform. -QAK
|
||||
*/
|
||||
switch (((size_t)fast_dim_count) % 8) {
|
||||
case 0:
|
||||
do
|
||||
{
|
||||
@ -3503,7 +3507,11 @@ for(i=0; i<ndims; i++)
|
||||
} /* end while */
|
||||
#else /* NO_DUFFS_DEVICE */
|
||||
duffs_index = (fast_dim_count + 7) / 8;
|
||||
switch (fast_dim_count % 8) {
|
||||
/* The following size_t cast is required on HPUX 10.20 in
|
||||
* order to make the system compuiler happy. It can be
|
||||
* removed when we are no longer supporting that platform. -QAK
|
||||
*/
|
||||
switch (((size_t)fast_dim_count) % 8) {
|
||||
case 0:
|
||||
do
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user