• 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: All floating point constants 64-bit in Xcode 3?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: All floating point constants 64-bit in Xcode 3?


  • Subject: Re: All floating point constants 64-bit in Xcode 3?
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 29 Oct 2007 11:21:17 -0400
  • Organization: Rogue Research

On 10/27/07 2:03 PM, Rick Mann said:

>I rebuilt my project in Xcode 3, and I have many warnings where a
>floating point literal is assigned to a float: "Implicit conversion
>shortens 64-bit value into a 32-bit value".
>
>How do I tell GCC that I want my floating-point literals to be type
>float? Do I have to append f to each?
>
>Is this an artifact of a newer GCC, or newer configuration in Xcode 3?

IIRC, the -Wshorten-64-to-32 warning was improved in Xcode 3.  It now
warns for more cases, and this seems to be biting you.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

 _______________________________________________
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: 
 >All floating point constants 64-bit in Xcode 3? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: GC and backward compatibility?
  • Next by Date: Re: gcov cannot find $UNIX2003 symbols in Xcode 3
  • Previous by thread: Re: All floating point constants 64-bit in Xcode 3?
  • Next by thread: malloc performance problem on Xcode 3.0
  • Index(es):
    • Date
    • Thread