Skip to content

Commit

Permalink
Issue gpakosz#4
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Dolores Tasche <sara.dolores.tasche@gmail.com>
  • Loading branch information
sa-tasche committed Mar 24, 2021
1 parent a4cffc2 commit 27cda6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PackedArray.c
Expand Up @@ -239,7 +239,7 @@ void PACKEDARRAY_JOIN(__PackedArray_pack_, PACKEDARRAY_IMPL_BITS_PER_ITEM)(uint3
PACKEDARRAY_ASSERT(in == end);
if ((count * PACKEDARRAY_IMPL_BITS_PER_ITEM + startBit) % 32)
{
packed |= *out & ~((uint32_t)(1ULL << ((((uint64_t)count * (uint64_t)PACKEDARRAY_IMPL_BITS_PER_ITEM + startBit - 1) % 32) + 1)) - 1);
packed |= *out & ~((uint32_t)(1ULL << (((uint64_t)count * (uint64_t)PACKEDARRAY_IMPL_BITS_PER_ITEM + startBit) % 32)) - 1);
*out = packed;
}
}
Expand Down

0 comments on commit 27cda6e

Please sign in to comment.