[EMAIL PROTECTED] wrote:
> I think that an FlpDouble can be converted to a double using the FlpCompDouble
> type. That is:
>
> double myDouble;
> FlpDouble myFlpDouble;
> FlpCompDouble myConverter;
>
> myFlpDouble = FlpAtoF("1.234");
> myConverter.fd = myFlpDouble;
> myDouble = myConverter.d;
Right, except that that code crashes with GCC because the Palm OS ABI for
this case (namely: functions returning small structs) was never defined
properly, and GCC does it differently from CodeWarrior. For details and a
workaround, see
http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/~checkout~/test/float-conv.c?rev=1.1&cvsroot=prc-tools
Something similar will be in the next SDK to make this more convenient.
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
- Re: GCC Compiler Bug? (Or am I just losing my mind?) John Leung
- Re: GCC Compiler Bug? (Or am I just losing my mind?) Igor Mozolevsky
- Re: GCC Compiler Bug? (Or am I just losing my mind?) krollin
- Re: GCC Compiler Bug? (Or am I just losing my mind?) Igor Mozolevsky
- Re: GCC Compiler Bug? (Or am I just losing my mind?) Thomas Ward
- Re: GCC Compiler Bug? (Or am I just losing my mind?) Roger Chaplin
- Re: GCC Compiler Bug? (Or am I just losing my mind?) Igor Mozolevsky
- Re: GCC Compiler Bug? (Or am I just losing my mind?) Igor Mozolevsky
- Re: GCC Compiler Bug? (Or am I just losing my mind?) Thomas Ward
- Re: GCC Compiler Bug? (Or am I just losing my mind?) Igor Mozolevsky
- Re: GCC Compiler Bug? (Or am I just losing my mind?) John Marshall
- Re: GCC Compiler Bug? (Or am I just losing my mind?) krollin
