• 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: Chris Ridd <email@hidden>
  • Date: Fri, 14 May 2004 18:58:40 +0100

On 14/5/04 5:50 pm, email@hidden <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, as total is an unsigned long long *.

Remove the '*'.

Cheers,

Chris
_______________________________________________
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: One-line TextViews
  • Next by Date: Re: invalid operands to binary?
  • Previous by thread: Re: invalid operands to binary?
  • Next by thread: Re: invalid operands to binary?
  • Index(es):
    • Date
    • Thread