Commit 688a133f authored by Bastien Nocera's avatar Bastien Nocera

morph: Fix misleading indentation

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);
       ^~~~~~
parent 0cd37b01
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment