Skip to content

Commit

Permalink
Remove C99 style inline declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-liddell committed Feb 2, 2024
1 parent 06be827 commit faf9dc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adaptmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2982,10 +2982,12 @@ PIX *pix1, *pix2, *pixd;
PIX *
pixConvertTo8MinMax(PIX *pixs)
{
l_int32 d;

if (!pixs)
return (PIX *)ERROR_PTR("pixs not defined", __func__, NULL);

l_int32 d = pixGetDepth(pixs);
d = pixGetDepth(pixs);
if (d == 1) {
return pixConvert1To8(NULL, pixs, 255, 0);
} else if (d == 2) {
Expand Down

0 comments on commit faf9dc4

Please sign in to comment.