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 1, 2024
1 parent 06be827 commit e4dd38c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adaptmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2982,10 +2982,11 @@ 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 e4dd38c

Please sign in to comment.