Skip to content
Snippets Groups Projects
Commit 3c373507 authored by Raymond Toy's avatar Raymond Toy
Browse files

Fix data-vector-set-c for unsigned-byte 1, 2, and 4

For simple-arrays of 1, 2, or 4-bit elements, data-vector-set-c was
incorrectly merging the new value into the array when the index is a
multiple of the number of elements per (32-bit) word.  Thus, for 4-bit
elements, the new value was not merged in when the index is a multiple
of 8.  In these cases, there's no need to shift the array value or the
new value to move them into the correct place.  When the shift is
zero, the code accidentally removed the part that merges in the new
value.

Fix #10.
parent 704b1ae0
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment