Commit f2dfc55f authored by Russ Cox's avatar Russ Cox

I guess I forgot there was a unary ^ operator.

R=r
DELTA=3  (0 added, 1 deleted, 2 changed)
OCL=29151
CL=29176
parent 96cfd154
......@@ -81,12 +81,11 @@ func (d *digest) Reset() {
}
func update(crc uint32, tab *Table, p []byte) uint32 {
crc ^= 0xFFFFFFFF;
crc = ^crc;
for i := 0; i < len(p); i++ {
crc = tab[byte(crc) ^ p[i]] ^ (crc >> 8);
}
crc ^= 0xFFFFFFFF;
return crc;
return ^crc;
}
func (d *digest) Write(p []byte) (n int, err os.Error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment