On Tue, 2006-01-17 at 12:12 +0100, [EMAIL PROTECTED] wrote: > ---------------------------- Original Message ---------------------------- > Subject: Re: [Tinyos-help] How to use int32 in TinyOS programming > From: [EMAIL PROTECTED] > Date: Tue, January 17, 2006 11:16 am > To: [EMAIL PROTECTED] > -------------------------------------------------------------------------- > > Sorry, > I know that I have to write "int32_t" and "uint32_t". I know that it's > possible declare int32_t and than assign a costant with the "U" at the > end, for example: > > int32_t a; > a = 100000U; > > That's means that the value is unsigned. But I need the value with sign. > Thanks.
int32_t a; a = 100000L; L (or l) is the long (32-bit) suffix. L is generally better, as depending on your font 1 (the digit) and l (the letter) can be hard to distinguish. For constants, this is particularly problematic. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
