• 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: warning: cast from pointer to integer of different size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning: cast from pointer to integer of different size


  • Subject: Re: warning: cast from pointer to integer of different size
  • From: Jon Sigman <email@hidden>
  • Date: Tue, 19 Apr 2011 11:06:12 -0700 (PDT)

Thanks, David. I do recall that now. Need more coffee...

________________________________
From: David Duncan <email@hidden>
To: Jon Sigman <email@hidden>
Cc: email@hidden
Sent: Tue, April 19, 2011 11:01:40 AM
Subject: Re: warning: cast from pointer to integer of different size

%p

On Apr 19, 2011, at 10:50 AM, Jon Sigman wrote:

> Basic question: Just for debugging purposes, I'm trying to print out the
>address
>
> of a pointer to a struct, but I can't figure out the proper way to do it (ie,
> satisfy the compiler warnings). OSX 10.6.7, Xcode 3.2.6
>
>    dispatch_source_t our_gcd_source;
>    . . .
>    printf("gcd_source: X\n",gcd_source);
> warning: format 'X' expects type 'unsigned int', but argument 2 has type
> 'dispatch_source_t'
>    . . .
>    printf("gcd_source: X\n",(unsigned int)gcd_source);
> warning: cast from pointer to integer of different size
>
> Thx
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden

--
David Duncan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >warning: cast from pointer to integer of different size (From: Jon Sigman <email@hidden>)
 >Re: warning: cast from pointer to integer of different size (From: David Duncan <email@hidden>)

  • Prev by Date: Re: warning: cast from pointer to integer of different size
  • Next by Date: Re: UIView/NSView doesn't display changing data in real time
  • Previous by thread: Re: warning: cast from pointer to integer of different size
  • Next by thread: How call upper layer function
  • Index(es):
    • Date
    • Thread