mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Remove hand-written decode_huffman_fast type pun
Type punning is undefined behavior.
This commit is contained in:
1 parent
b31ddaa052
commit
d076b6e800
1 file changed
+1
-1
@@ -458,7 +458,7 @@ outer_loop:
|
|||||||
// the overrun.
|
// the overrun.
|
||||||
if (dist_minus_1 + 1 >= 8) {
|
if (dist_minus_1 + 1 >= 8) {
|
||||||
while (1) {
|
while (1) {
|
||||||
*((uint64_t*)(pdst)) = *((uint64_t*)(pback));
|
memcpy(pdst, pback, 8);
|
||||||
if (length <= 8) {
|
if (length <= 8) {
|
||||||
pdst += length;
|
pdst += length;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in new issue
Block a user