• 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: Steve Checkoway <email@hidden>
  • Date: Sat, 27 Oct 2007 14:10:56 -0700


On Oct 27, 2007, at 2:03 PM, Rick Mann wrote:

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?

This is what I've always done.

Is this an artifact of a newer GCC, or newer configuration in Xcode 3?


I'm unaware that you could ever get gcc to just assume that it was a float. I just glanced through the man page and nothing stuck out at me as being able to do so.

--
Steve Checkoway



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: All floating point constants 64-bit in Xcode 3?
  • Next by Date: Re: All floating point constants 64-bit in Xcode 3?
  • Previous by thread: All floating point constants 64-bit in Xcode 3?
  • Next by thread: Re: All floating point constants 64-bit in Xcode 3?
  • Index(es):
    • Date
    • Thread