Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix braino in P6opaque computation of bitwidths.
japhb++ for spotting it.
  • Loading branch information
arnsholt committed Feb 2, 2013
1 parent bbf29dd commit f08620a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/6model/reprs/P6opaque.c
Expand Up @@ -227,7 +227,7 @@ static void compute_allocation_strategy_OLD(PARROT_INTERP, PMC *WHAT, P6opaqueRE
align = spec.align;
repr_data->flattened_stables[i] = STABLE(type);

if (bits % 8) bits += bits % 8;
if (bits % 8) bits += 8 - bits%8;

/* Does it need special initialization? */
if (REPR(type)->initialize) {
Expand Down Expand Up @@ -473,7 +473,7 @@ static void compute_allocation_strategy(PARROT_INTERP, PMC *repr_info, P6opaqueR
align = spec.align;
repr_data->flattened_stables[i] = STABLE(type);

if (bits % 8) bits += bits % 8;
if (bits % 8) bits += 8 - bits%8;

/* Does it need special initialization? */
if (REPR(type)->initialize) {
Expand Down

0 comments on commit f08620a

Please sign in to comment.