diff options
| -rw-r--r-- | arch/x86/deflate_quick.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/deflate_quick.c b/arch/x86/deflate_quick.c index 9fb321d1ec..9968b9600c 100644 --- a/arch/x86/deflate_quick.c +++ b/arch/x86/deflate_quick.c @@ -23,6 +23,7 @@ # include <nmmintrin.h> #endif #include "deflate.h" +#include "memcopy.h" #ifdef ZLIB_DEBUG #include <ctype.h> @@ -151,7 +152,7 @@ static inline void quick_send_bits(deflate_state *const s, s->bi_valid = width - (bytes_out * 8); /* Taking advantage of the fact that LSB comes first, write to output buffer */ - *(unsigned *)(s->pending_buf + s->pending) = out; + MEMCPY(s->pending_buf + s->pending, &out, sizeof(out)); s->pending += bytes_out; } |
