summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5Shyper.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index 2257263..6b59f24 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -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
{