PackedArray icon indicating copy to clipboard operation
PackedArray copied to clipboard

Inconsistent results with 1-bit packed array

Open guinn8 opened this issue 3 years ago • 1 comments

I only really know the symptoms of the (possible) bug, no idea about the cause. I'll keep my description high level so others know the gist of the issue, happy to answer additional questions.

I get different results from my program when I use PackedArray *f = PackedArray_create(1, len); vs PackedArray *f = PackedArray_create(2, len);. The only line of code modifying the array is PackedArray_set(f, offset, 1); and as such the number of bits should not matter.

guinn8 avatar Jan 20 '22 19:01 guinn8

Hello @guinn8,

Can you please share a simple reproducer?

gpakosz avatar Jan 21 '22 19:01 gpakosz