I was debugging my circular queue implementation and found out that
according to TOSSIM: (0-1)%2 == 255. All values were uint8_t.
I solved the problem with my queue, but this is not what I have
learned at school about how mod operator is supposed to work. Did
somebody encounter this problem before? Is there a reason why the
modulo operator works this way in TOSSIM?
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to