• 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: variable weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: variable weirdness


  • Subject: Re: variable weirdness
  • From: Cameron Hayne <email@hidden>
  • Date: Sat, 11 Feb 2006 01:55:02 -0500

On 11-Feb-06, at 12:33 AM, Erik Grumstrup wrote:

ok...a bit of abbreviated code, though I am unsure it will reveal anything...

main()
{
double my_a[13];

my_a[1]=109789.99;
etc..

spec_calc_pred(my_a[1],my_a[2],.....);

}
**************************************************
void spec_calc_pred(double a, double b.....)

Things to check:
- is the function 'spec_calc_pred' declared before the point it is called?
- are you putting more than 13 values into 'my_a' ?
- what happens if you comment out the section that sets 'my_a' and change the function call to use explicit floating point values (spec_calc_pred(109789.99,.....);)?


--
Cameron Hayne
email@hidden


_______________________________________________ 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: 
 >Re: variable weirdness (From: Scott Ribe <email@hidden>)
 >Re: variable weirdness (From: Erik Grumstrup <email@hidden>)

  • Prev by Date: Re: external declares
  • Next by Date: Fwd: external declares
  • Previous by thread: Re: variable weirdness
  • Next by thread: Re: variable weirdness
  • Index(es):
    • Date
    • Thread