use G_BYTE_ORDER in im_msb rather than WORDS_BIGENDIAN which was never implmented AFAIK

This commit is contained in:
John Cupitt 2008-01-22 11:09:17 +00:00
parent e3c776036b
commit 9c10ba9ed9

View File

@ -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;