[Tinyos-host-mote-wg] Re: [Tinyos-2.0wg] Bug in nesC 1.2alpha10

Cory Sharp cory.sharp at gmail.com
Fri May 20 14:26:34 PDT 2005


On 5/20/05, Joe Polastre <joe.polastre at gmail.com> wrote:
> two potential bugs:
>   * cory's timer shifting error

No error, just a spurious warning.

The code is creating a mask of num_bits least significant bits set to
1.  It does that like this (((size_type)1)<<num_bits)-1.  If num_bits
is the same as the number of bits in size_type, the right thing
happens (-1 is calculated), but a warning occurs.

Any suggestions on nice ways to remove the warning?  I can think of a
number of hacky ways to remove it.

Cory

_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg


More information about the Tinyos-host-mote-wg mailing list