Is there some setting in CW to disable arithmetic conversion warnings when indexing in to arrays with unsigned shorts vs. signed shorts?
If I write the following code. UInt16 index = 3;
UInt32 myArray[ 500 ];
myArray[ index ] = 10;
I get a warning message about arithmetic conversion from unsigned short to short.
It would seem to me that it would be better practice to allow unsigned indexes vs. signed indexes.
C lets you write "foo[-1]" if you want. If the index was treated as an unsigned short, this could point to the wrong memory location.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
