> That macro was defined for PNO ARM code which has 32-bit ints.
Hmm, perhaps the documentation really ought to give a hint that this macro should be used ONLY in environments where "unsigned char" is 32-bit, or it SIMPLY DOESN'T WORK. As it is, the documentation says that the macro "is useful" when writing PNOs; it doesn't say clearly that it doesn't work at all for other purposes.
Actually, the size of unsigned char doesn't matter, as C language rules require that all types be promoted to 'int' before math takes place, unless that promotion would have no affect on the final result.
-- Ben Combee, Senior Software Engineer, palmOne, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/
-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
