projects
/
can-benchmark.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cef6d7
)
Another bug
author
Michal Sojka
<sojkam1@fel.cvut.cz>
Wed, 6 Nov 2013 17:54:04 +0000
(18:54 +0100)
committer
Michal Sojka
<sojkam1@fel.cvut.cz>
Wed, 6 Nov 2013 17:54:04 +0000
(18:54 +0100)
latester/latester.c
patch
|
blob
|
history
diff --git
a/latester/latester.c
b/latester/latester.c
index
a2f4f18
..
0906760
100644
(file)
--- a/
latester/latester.c
+++ b/
latester/latester.c
@@
-202,7
+202,7
@@
uint32_t calc_bitmap_crc(uint32_t *bitmap, unsigned start, unsigned end)
crc_t crc = 0;
crc = crc_update(crc, bitmap[0] << start, 32 - start);
crc = crc_update(crc, bitmap[1], 32);
- crc = crc_update(crc, bitmap[2], end - 64 > 32 ? 32 : end - 64);
+ crc = crc_update(crc, bitmap[2], end - 64 > 32 ? 32 : end - 64);
/* FIXME: This seems to be broken for end < 64 */
crc = crc_update(crc, bitmap[3], end > 96 ? end - 96 : 0);
return (uint32_t)htons(crc << 17);
}