commit | 6e907dd4abdff9c52c809ea49c76d789b11c0e12 | [log] [tgz] |
---|---|---|
author | Joakim Tjernlund <Joakim.Tjernlund@transmode.se> | Mon Nov 17 11:22:25 2008 +0100 |
committer | Paul Jakma <paul@quagga.net> | Sat Nov 29 18:04:11 2008 +0000 |
tree | fc63d6c0699cc626a316ae3662f045f7de8e90fe | |
parent | 4768061ad5d7c762f2272436a89e62d4e41676a2 [diff] |
[lib] Move type cast in Fletcher checksum The int type cast should be on the whole expression passed to the mod operator. Otherwise it won't work when/if c0/c1 is unsigned. Making c0/c1 unsigned makes it possible to use 5802 as MODX value.