• 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: invalid operands to binary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: invalid operands to binary?


  • Subject: Re: invalid operands to binary?
  • From: Nicholas Riley <email@hidden>
  • Date: Fri, 14 May 2004 12:35:32 -0500
  • Mail-followup-to: email@hidden, email@hidden

On Fri, May 14, 2004 at 09:50:22AM -0700, email@hidden wrote:
> why does this:
> unsigned long long *total;
> unsigned long long totalFileSizeK = total/1024;
>
> give me this:
> invalid operands to binary /
>
> is there something easy i'm missing here?

You're dividing a pointer by a number and expecting the result to make
sense?

unsigned long long totalFileSizeK = *total/1024;

sounds a bit more reasonable, if total is indeed a pointer to unsigned
long long.

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >invalid operands to binary? (From: email@hidden)

  • Prev by Date: Re: invalid operands to binary?
  • Next by Date: Re: One-line TextViews
  • Previous by thread: Re: invalid operands to binary?
  • Next by thread: Re: invalid operands to binary?
  • Index(es):
    • Date
    • Thread