From 29916584ae00a16ef0974d419a89d6f12edecc12 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 11 Jan 2018 13:46:38 +0100 Subject: Fix breakage of previous commit (bis) --- src/PJ_axisswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/PJ_axisswap.c b/src/PJ_axisswap.c index 725077a8..f7e89c33 100644 --- a/src/PJ_axisswap.c +++ b/src/PJ_axisswap.c @@ -192,7 +192,7 @@ PJ *CONVERSION(axisswap,0) { /* read axes numbers and signs */ for ( s = order, n = 0; *s != '\0' && n < 4; ) { Q->axis[n] = abs(atoi(s))-1; - if (Q->axis[n] < 0 || Q->axis[n] > 3) { + if (Q->axis[n] > 3) { proj_log_error(P, "axisswap: invalid axis '%d'", Q->axis[n]); return pj_default_destructor(P, PJD_ERR_AXIS); } -- cgit v1.2.3