Add (ptr base.u8).read_u32le method

This commit is contained in:
Nigel Tao committed 2018-05-04 10:42:05 +10:00
1 parent 4584022d1a
commit e72f957eca
8 files changed
+77 -9

No files matched your search

+1 -1
View File
@@ -2018,7 +2018,7 @@ uint32_t wuffs_crc32__ieee_hasher__update(wuffs_crc32__ieee_hasher* self,
uint8_t* v_p = i_slice_p.ptr;
uint8_t* i_end0_p = i_slice_p.ptr + (i_slice_p.len / 8) * 0;
while (v_p < i_end0_p) {
v_s ^= 1234;
v_s ^= (wuffs_base__load_u32le(v_p + 0));
v_p += 8;
}
uint8_t* i_end1_p = i_slice_p.ptr + i_slice_p.len;