Steve Sabram <[EMAIL PROTECTED]> wrote:
>>>> StrIToA(debugstring1,0.2>5);
[...]
> Then some typecasting may be in order such as...
>
> double test1 = 0.2;
> int test2 = 5;
>
> StrIToA(debugstring1, (int) (0.2 > 5));
> StrIToA(debugstring2, (int) (test1 > test2));
Good grief man! Stop with the disinformation already!!!
If StrIToA is not causing link errors, it must be that there is a
declaration in scope to tell the compiler it's a systrap. Let's assume
that Nathan isn't psychotic and so didn't declare it himself, so that
declaration is the prototype from StringMgr.h. Thence, since there's
a prototype in scope, even if the parameter were not an Int32, it'd get
converted to one before StrIToA was called. That typecasting you added
isn't changing anything at all. (Well, except that adding your typecast
to `StrIToA (buf, 65540)' would *introduce* a bug.)
John "Good grief. Is it Friday afternoon yet? :-)"
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/