This commit is contained in:
John Cupitt 2008-03-08 10:40:26 +00:00
parent e9538aabfe
commit 9937ce8a2b
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
7/3/08 started 7.15.0
- MAGIC numbers should be unsigned
- write MAGIC correctly on sparc/powerpc machines
- MAGIC constants should be tagged as unsigned
- write MAGIC correctly on sparc/powerpc machines (thanks Joe)
25/1/08 started 7.14.0
- bump all version numbers for new stable

View File

@ -186,13 +186,13 @@ im__write_header_bytes( IMAGE *im, unsigned char *to )
int i;
unsigned char *q;
/* Always write MSB first.
/* Always write the magic number MSB first.
*/
magic = im_amiMSBfirst() ? IM_MAGIC_SPARC : IM_MAGIC_INTEL;
to[0] = (magic & 0xff000000) >> 24;
to[1] = (magic & 0xff0000) >> 16;
to[2] = (magic & 0xff00) >> 8;
to[3] = magic & 0xff;
to[0] = magic >> 24;
to[1] = magic >> 16;
to[2] = magic >> 8;
to[3] = magic;
q = to + 4;
for( i = 0; i < IM_NUMBER( fields ); i++ )