FWIW, Keith's table and Mr. Marshall's explanation are both correct.
However, it should be pointed out that CW and GCC are not alone in deviation
from the standards in the handling of literals.  A huge number of compilers
mess this up.  I still say the safest way to manage literals is to
explicitly cast.

Regards,
-jjf

         m68k-palmos-gcc  CW C  CW C++  ISO C  ISO C++
         ---------------  ----  ------  -----  -------
'a'      long             int   char    int    char
'ab'     long             int   int     int    int
'abcd'   long             long  long    int    int

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to