Fix the adler.update implementation.

This commit is contained in:
Nigel Tao committed 2017-10-19 20:45:43 +11:00
1 parent d770bf7534
commit f9cea5c17c
8 files changed
+186 -40

No files matched your search

+1 -1
View File
@@ -2440,7 +2440,7 @@ uint32_t puffs_flate_adler_update(puffs_flate_adler* self,
}
v_i = 0;
while (v_i < ((uint64_t)(a_x.len))) {
v_s1 += 42;
v_s1 += ((uint32_t)(a_x.ptr[v_i]));
v_s2 += v_s1;
v_i += 1;
}