summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5detect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5detect.c b/src/H5detect.c
index c28d264..e4b093a 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -845,7 +845,7 @@ fix_order(int n, int first, int last, int *perm, const char **mesg)
/*
* Bi-endian machines like VAX.
*/
- assert(0 == n / 2);
+ assert(0 == n % 2);
if (mesg) *mesg = "VAX";
for (i = 0; i < n; i += 2) {
perm[i] = (n - 2) - i;