Skip to content

Commit

Permalink
Do not hold C pointer to a Bag over CosetLeadersInner8Bits
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson authored and fingolfin committed Jun 15, 2018
1 parent d509288 commit 94eed8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vec8bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -2592,14 +2592,14 @@ UInt CosetLeadersInner8Bits( Obj veclis,
return found;
}

settab = SETELT_FIELDINFO_8BIT(info);
feltffe = FELT_FFE_FIELDINFO_8BIT(info);
vp = ELM_PLIST(veclis, pos);
for (i = 1; i < q; i++) {
u = ELM_PLIST(vp, i);
AddVec8BitVec8BitInner(w, w, u, 1, lenw);
ptr = BYTES_VEC8BIT(v) + (pos - 1) / elts;
x = ELM_PLIST(felts, i + 1);
settab = SETELT_FIELDINFO_8BIT(info);
feltffe = FELT_FFE_FIELDINFO_8BIT(info);
*ptr = settab[*ptr + 256 * (elts * feltffe[VAL_FFE(x)] + ((pos - 1) % elts))];
found += CosetLeadersInner8Bits(veclis, v, w, weight - 1, pos + 1, leaders, tofind - found, felts);
if (found == tofind)
Expand Down

0 comments on commit 94eed8a

Please sign in to comment.