Sorry. Ignore my last mail. I didn't catch that it is complaining not for the type of the variable, rather for the constant in the declaration. So I have changed the line to be: / *********/ const uint16_t FT_TIMER_MIN = (uint16_t)60000; / *********/ And there is no warning any more. Regards Hristo Bojkov -------Original Message------- From: Hristo Bojkov Date: 19.12.2007 г. 14:39:01 To: Tinyos-help Subject: Is uint16_t a unsigned int type? Hello coders, I have question regarding uint16_t type. I was assuming that it is 16bit Unsigned integer. But when I use such type, and set a value over 32K, I receive a warning During compilation, an example is: / *********/ Const uint16_t FT_TIMER_MIN = 60000; /**********/ The result from compilation is: .... /opt/tinyos-2.x/apps/Tutorial/FlexTimer/FlexTimer.h:25: warning: decimal Constant is so large that It is unsigned ... Which type do you use to keep 16 bits unsigned integers? Regards Hristo Bojkov
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
