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); ^~~~~~
This commit is contained in:
parent
0cd37b0142
commit
688a133f3f
1 changed files with 4 additions and 4 deletions
|
@ -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 */
|
if (row >= ih-1) /* catch case where image is undefined southwards */
|
||||||
return failcode; /* use plane geometry and return code. */
|
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 */
|
if (row < 1) /* catch case where image is undefined northwards */
|
||||||
return failcode; /* use plane geometry and return code. */
|
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 */
|
if (col >= iw-1) /* catch case where image is undefined eastwards */
|
||||||
return failcode; /* use plane geometry and return code. */
|
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 */
|
if (col < 1) /* catch case where image is undefined westwards */
|
||||||
return failcode; /* use plane geometry and return code. */
|
return failcode; /* use plane geometry and return code. */
|
||||||
|
|
||||||
return *(ptr- 1);
|
return *(ptr- 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue