----- Original Message ----- From: "wax wacky" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, March 30, 2004 7:58 AM Subject: CW compiler Data type
> > I am confused by the behaviour of my code warrior ..... my problem is > > in my program i have an assignment > > UInt32 qqq; > qqq = (aiRows * aiColumns * 4); ///aiRows = 160, aiCloumns = 140 ; > > Now the problem : after execution qqq gets a value of 24064 (binary : 0101 1110 0000 0000 ) instead of 89600 (binary: 1 0101 1110 0000 0000) > > That means the operation (aiRows * aiColumns * 4) is giving only a 16 bit value. Are aiRows and aiColumns variables or definitions ? If variables, are they of type Int32 ? If definitions, define them as 160L and 140L. Vu -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
