From 688a133f3f1ac33741aa3aad12da78a7b6ffa560 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 27 Aug 2018 13:48:57 +0200 Subject: [PATCH] morph: Fix misleading indentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mindtct/morph.c: In function ‘get_south8_2’: mindtct/morph.c:173:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (row >= ih-1) /* catch case where image is undefined southwards */ ^~ mindtct/morph.c:176:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ return *(ptr+iw); ^~~~~~ mindtct/morph.c: In function ‘get_north8_2’: mindtct/morph.c:197:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (row < 1) /* catch case where image is undefined northwards */ ^~ mindtct/morph.c:200:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ return *(ptr-iw); ^~~~~~ mindtct/morph.c: In function ‘get_east8_2’: mindtct/morph.c:221:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (col >= iw-1) /* catch case where image is undefined eastwards */ ^~ mindtct/morph.c:224:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ return *(ptr+ 1); ^~~~~~ mindtct/morph.c: In function ‘get_west8_2’: mindtct/morph.c:243:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (col < 1) /* catch case where image is undefined westwards */ ^~ mindtct/morph.c:246:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ return *(ptr- 1); ^~~~~~ --- libfprint/nbis/mindtct/morph.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libfprint/nbis/mindtct/morph.c b/libfprint/nbis/mindtct/morph.c index 41978f1e..1399b0d8 100644 --- a/libfprint/nbis/mindtct/morph.c +++ b/libfprint/nbis/mindtct/morph.c @@ -173,7 +173,7 @@ char get_south8_2(char *ptr, const int row, const int iw, const int ih, if (row >= ih-1) /* catch case where image is undefined southwards */ return failcode; /* use plane geometry and return code. */ - return *(ptr+iw); + return *(ptr+iw); } /************************************************************************* @@ -197,7 +197,7 @@ char get_north8_2(char *ptr, const int row, const int iw, if (row < 1) /* catch case where image is undefined northwards */ return failcode; /* use plane geometry and return code. */ - return *(ptr-iw); + return *(ptr-iw); } /************************************************************************* @@ -221,7 +221,7 @@ char get_east8_2(char *ptr, const int col, const int iw, if (col >= iw-1) /* catch case where image is undefined eastwards */ return failcode; /* use plane geometry and return code. */ - return *(ptr+ 1); + return *(ptr+ 1); } /************************************************************************* @@ -243,5 +243,5 @@ char get_west8_2(char *ptr, const int col, const int failcode) if (col < 1) /* catch case where image is undefined westwards */ return failcode; /* use plane geometry and return code. */ - return *(ptr- 1); + return *(ptr- 1); }