Skip to content

Commit 3ab50c4

Browse files
committed
crn_decomp: fix: warning: first argument in call to ‘memcpy’ is a pointer to non-trivially copyable type ‘crnd::prefix_coding::decoder_tables’
1 parent 73e74fa commit 3ab50c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/crn_decomp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ class decoder_tables {
14561456

14571457
clear();
14581458

1459-
memcpy(this, &other, sizeof(*this));
1459+
memcpy((void*) this, &other, sizeof(*this));
14601460

14611461
if (other.m_lookup) {
14621462
m_lookup = crnd_new_array<uint32>(m_cur_lookup_size);

0 commit comments

Comments
 (0)