summaryrefslogtreecommitdiff
path: root/src/ltc/misc/crc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ltc/misc/crc32.c')
-rw-r--r--src/ltc/misc/crc32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ltc/misc/crc32.c b/src/ltc/misc/crc32.c
index 5c49f421..99c66457 100644
--- a/src/ltc/misc/crc32.c
+++ b/src/ltc/misc/crc32.c
@@ -153,8 +153,9 @@ void crc32_update(crc32_state *ctx, const unsigned char *input, unsigned long le
LTC_ARGCHKVD(input != NULL);
crc = ctx->crc;
- while (length--)
+ while (length--) {
crc = crc32_m_tab[CRC32_INDEX(crc) ^ *input++] ^ CRC32_SHIFTED(crc);
+ }
ctx->crc = crc;
}