Skip to content

Commit

Permalink
Merge branch 'john/erts/fix-silly-mistake-in-copy_binary_to_buffer'
Browse files Browse the repository at this point in the history
* john/erts/fix-silly-mistake-in-copy_binary_to_buffer:
  erl_bits.h: Fix silly mistake in copy_binary_to_buffer
  • Loading branch information
jhogberg committed Mar 28, 2024
2 parents 5de1f8a + a1c4b07 commit ab43b55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions erts/emulator/beam/erl_bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,11 @@ copy_binary_to_buffer(byte *dst_base, Uint dst_offset,

if (((dst_offset | src_offset | size) & 7) == 0) {
sys_memcpy(dst_base, src_base, BYTE_SIZE(size));
} else {
erts_copy_bits(src_base, BIT_OFFSET(src_offset), 1,
dst_base, BIT_OFFSET(dst_offset), 1,
size);
}

erts_copy_bits(src_base, BIT_OFFSET(src_offset), 1,
dst_base, BIT_OFFSET(dst_offset), 1,
size);
}
}

Expand Down

0 comments on commit ab43b55

Please sign in to comment.