On Thu, Jun 5, 2008 at 5:12 PM, Brian Stern <[EMAIL PROTECTED]> wrote:

> While float and int are the same size they are returned from functions in
> different registers (on both ppc and intel). If the calling function expects
> a float returned type but an int is returned instead the calling function
> will certainly get a bogus value. In addition it may save and restore the
> wrong registers and not save and restore a register that needs to be
> preserved, resulting in memory corruption.

That shouldn't be what happened here, though -- the method in question
was returning a float. Perhaps the calling function expected an int,
but I don't see why...

Hamish
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to