[Tinyos-help] Bug in NesC or a simple error.........???
Miguel Pereira
miguelpereira.pro at gmail.com
Thu Jan 25 09:04:53 PST 2007
Hi,
In the last few days, when I execute the command "make telosb" and I compile
the code I'm having a little bit difficulty of making disappear one warning.
"Decimal constant is so large that it is unsigned"
The line where this occur is the following -> result = (uint64_t) (
((1000)*random) /65535);
The variable result is uint64_t and random is uint16_t.
I have two consideration to make, first, the warning shouldn't exist because
the variable result with 64 should handle with the size of number. Second,
if I'm making the cast uint64_t, why informs me that the number will be
unsigned?
If anyone can help me with this warning I will appreciate.
Thanks for any help.
Miguel Pereira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070125/874c2ae3/attachment.htm
More information about the Tinyos-help
mailing list