[Tinyos-help] Bug in NesC or a simple error.........???
Miguel Pereira
miguelpereira.pro at gmail.com
Fri Jan 26 04:36:43 PST 2007
Hi,
I already figure out what is the problem but there is something wrong with
nesC compiler.
The problem is the number 65535. When I put this number in one variable
uint16_t, one warning fire, which is comprehensible because besides I'm
using the uint16_t the range could be of -32767 to 32767. If I put the
number 32767, all OK, but if I put 32768 all became wrong again. To resolve
the problem I thing in use the uint32_t type but happens exactly the same.
If I put uint32_t number = 32767 there is no problem but if I put uint32_t
number = 32768 the warning "decimal constant is so large that it is
unsigned" fire and I think this shouldn't happen.
Thanks for any help.
Miguel Pereira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070126/08867ce0/attachment.html
More information about the Tinyos-help
mailing list