• 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
-Wshorten-64-to-32 and LL suffix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-Wshorten-64-to-32 and LL suffix


  • Subject: -Wshorten-64-to-32 and LL suffix
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 14 Aug 2006 21:01:38 -0400

Hi all,

With the -Wshorten-64-to-32 warning, Xcode is complaining:

warning: implicit conversion shortens 64-bit value into a 32-bit value

for the code:

	err = FSWriteFork( destRefNum, fsAtMark + noCacheMask, 0,
bytesToWriteThisTime, params->copyBuffer, NULL );

The 3rd param is an SInt64.  I changed the "0" to "0LL", but I still get
the warning.  Is that not the correct solution?

Thanks!

BTW: -Wshorten-64-to-32 is pretty handy these days! :)

--
"Inter arma enim silent leges" - Cicero

 _______________________________________________
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

  • Follow-Ups:
    • Re: -Wshorten-64-to-32 and LL suffix
      • From: Alexey Proskuryakov <email@hidden>
  • Prev by Date: Re: Xcode/gcc help in enforcing secure coding?
  • Next by Date: Re: Xcode/gcc help in enforcing secure coding?
  • Previous by thread: Xcode 2.4 hits an assert
  • Next by thread: Re: -Wshorten-64-to-32 and LL suffix
  • Index(es):
    • Date
    • Thread