• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Returning long long values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Returning long long values


  • Subject: Re: Returning long long values
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Sat, 21 Feb 2009 12:39:55 -0800

If the caller cannot see the function's prototype, the C will assume that the function returns an int instead of a long long; so, the first thing I would check is that you have a declaration of the function in scope when it is called.

Sent from my iPhone

On Feb 20, 2009, at 16:58, David Dunham <email@hidden> wrote:

On 20 Feb 2009, at 16:32, John Mikros wrote:

The high 32-bits are returned in edx


OK, I think I see that in the disassembly.

So is there a reason the value changed between my function and the caller? It does look like it's being truncated to 32 bits (4 bytes).

David Dunham
Voice/Fax: 206 783 7404             http://www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Returning long long values (From: David Dunham <email@hidden>)
 >RE: Returning long long values (From: "John Mikros" <email@hidden>)
 >Re: Returning long long values (From: David Dunham <email@hidden>)

  • Prev by Date: Re: opening project.pbxproject?
  • Next by Date: Re: Step into not working for methods but works for functions
  • Previous by thread: Re: Returning long long values
  • Next by thread: Imported .png images doesn't maintain its original size
  • Index(es):
    • Date
    • Thread