Skip to content

Commit

Permalink
HEH. Don't continually set hash per every array element in coverage h…
Browse files Browse the repository at this point in the history
…ash creation
enebo committed Mar 21, 2016
1 parent 5ecba25 commit 8ce7d99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -67,8 +67,8 @@ public static IRubyObject result(ThreadContext context, IRubyObject self) {
for (int i = 0; i < entry.getValue().length; i++) {
int integer = entry.getValue()[i];
ary.store(i, integer == -1 ? context.nil : runtime.newFixnum(integer));
covHash.fastASetCheckString(runtime, RubyString.newString(runtime, entry.getKey()), ary);
}
covHash.fastASetCheckString(runtime, RubyString.newString(runtime, entry.getKey()), ary);
}

return covHash;

0 comments on commit 8ce7d99

Please sign in to comment.