sstuff
This commit is contained in:
parent
e9538aabfe
commit
9937ce8a2b
@ -1,6 +1,6 @@
|
|||||||
7/3/08 started 7.15.0
|
7/3/08 started 7.15.0
|
||||||
- MAGIC numbers should be unsigned
|
- MAGIC constants should be tagged as unsigned
|
||||||
- write MAGIC correctly on sparc/powerpc machines
|
- write MAGIC correctly on sparc/powerpc machines (thanks Joe)
|
||||||
|
|
||||||
25/1/08 started 7.14.0
|
25/1/08 started 7.14.0
|
||||||
- bump all version numbers for new stable
|
- bump all version numbers for new stable
|
||||||
|
@ -186,13 +186,13 @@ im__write_header_bytes( IMAGE *im, unsigned char *to )
|
|||||||
int i;
|
int i;
|
||||||
unsigned char *q;
|
unsigned char *q;
|
||||||
|
|
||||||
/* Always write MSB first.
|
/* Always write the magic number MSB first.
|
||||||
*/
|
*/
|
||||||
magic = im_amiMSBfirst() ? IM_MAGIC_SPARC : IM_MAGIC_INTEL;
|
magic = im_amiMSBfirst() ? IM_MAGIC_SPARC : IM_MAGIC_INTEL;
|
||||||
to[0] = (magic & 0xff000000) >> 24;
|
to[0] = magic >> 24;
|
||||||
to[1] = (magic & 0xff0000) >> 16;
|
to[1] = magic >> 16;
|
||||||
to[2] = (magic & 0xff00) >> 8;
|
to[2] = magic >> 8;
|
||||||
to[3] = magic & 0xff;
|
to[3] = magic;
|
||||||
q = to + 4;
|
q = to + 4;
|
||||||
|
|
||||||
for( i = 0; i < IM_NUMBER( fields ); i++ )
|
for( i = 0; i < IM_NUMBER( fields ); i++ )
|
||||||
|
Loading…
Reference in New Issue
Block a user