Skip to content

Commit

Permalink
Merge pull request #731 from chris-liddell/master
Browse files Browse the repository at this point in the history
Remove C99 style inline declaration
  • Loading branch information
DanBloomberg authored Feb 2, 2024
2 parents 06be827 + faf9dc4 commit cb91576
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 cb91576

Please sign in to comment.