aboutsummaryrefslogtreecommitdiff
path: root/relax_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'relax_test.c')
-rw-r--r--relax_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/relax_test.c b/relax_test.c
index d211e35..c635949 100644
--- a/relax_test.c
+++ b/relax_test.c
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
}
log2N = strtol(argv[1], NULL, 0);
log2maxiter = strtol(argv[2], NULL, 0);
- if (log2N <= 0 || log2maxiter <= 0 ||
+ if (log2N <= 0 || log2maxiter < 0 ||
log2N >= sizeof(N) * 8 || log2maxiter >= sizeof(maxiter) * 8) {
fprintf(stderr, "Invalid log2N/log2maxiter values: %ld/%ld\n",
log2N, log2maxiter);