Browse files

Use the proper static HOP *hop_buckets by removing a shadow variables…

…. Fixes GitHub ticket #729 #729
  • Loading branch information...
1 parent 0935a0f commit c5339d29603bb34d9a62c4f398d5671aa883b5e6 @petdance petdance committed Mar 5, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 compilers/opsc/src/Ops/Trans/C.pm
View
7 compilers/opsc/src/Ops/Trans/C.pm
@@ -353,9 +353,10 @@ static void hop_init(PARROT_INTERP)
/* allocate the storage all in one chunk
* yes, this is profligate, but we can tighten it later */
- HOP * const hop_buckets =
- mem_gc_allocate_n_zeroed_typed(interp, [[BS]]op_lib.op_count * 2, HOP );
- HOP *hops = hop_buckets;
+ HOP *hops;
+
+ hop_buckets = mem_gc_allocate_n_zeroed_typed(interp, [[BS]]op_lib.op_count * 2, HOP );
+ hops = hop_buckets;
opcode_t i;

1 comment on commit c5339d2

@petdance

Fixed by commit c5339d2

Please sign in to comment.