Re: potential endian-related problem?
Re: potential endian-related problem?
- Subject: Re: potential endian-related problem?
- From: Robert Tillyard <email@hidden>
- Date: Fri, 8 Jul 2005 11:55:13 +0100
I don't have a Developer Transition Kit but this works the same on my
Intel (SCO) UNIX system. 'i' only needs byte swapping if you read/
write it to/from the disk.
Regards, Rob.
On 8 Jul 2005, at 11:32, Chase wrote:
on my ppc-mac, this code:
int i;
for (i = 1; i; i<<=1) {
printf("%d\n", i);
}
... produces the following output:
1
2
4
...
this, to me, looks like it's going to need an adjustment to work
the same on intel.
but i don't have an intel-mac in front of me and i can't think
straight enough at the moment to clearly picture what this might do
on an intel machine.
can someone point out if this will indeed need to be fixed to work
on intel and, if so, what change will need to be made?
basically, i just need the loop to walk the same series of numbers.
thanks.
- chase
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden