[riot-notifications] [RIOT] Bloom bytes (#176)

René Kijewski notifications at github.com
Sun Aug 25 20:04:28 CEST 2013


>  
> -    while ((c = (unsigned int) * str++)) {
> -        hash = ((hash << 5) ^ (hash >> 27)) ^ (c);
> +    for(int i = 0; i < len; i++) {
> +        hash = ((hash << 5) ^ (hash >> 27)) ^ (buf[i]);

Too many parens: `(hash << 5) ^ (hash >> 27) ^ buf[i]`

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/176/files#r5969139
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130825/f8a45195/attachment.html>


More information about the notifications mailing list