use G_BYTE_ORDER in im_msb rather than WORDS_BIGENDIAN which was never implmented AFAIK
This commit is contained in:
parent
e3c776036b
commit
9c10ba9ed9
@ -151,7 +151,7 @@ im_msb (IMAGE * in, IMAGE * out)
|
||||
|
||||
width = SIZEOF_BAND (in->BandFmt);
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
index = 0;
|
||||
#else
|
||||
index = width - 1;
|
||||
@ -239,7 +239,7 @@ im_msb_band (IMAGE * in, IMAGE * out, int band)
|
||||
|
||||
width = SIZEOF_BAND (in->BandFmt);
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
index = width * band;
|
||||
#else
|
||||
index = (width * (band + 1)) - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user