summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/coverage/coverage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/coverage/coverage.c b/ext/coverage/coverage.c
index af0cb87..ed4a69d 100644
--- a/ext/coverage/coverage.c
+++ b/ext/coverage/coverage.c
@@ -36,7 +36,7 @@ static int
coverage_clear_result_i(st_data_t key, st_data_t val, st_data_t h)
{
VALUE coverage = (VALUE)val;
- rb_ary_clear((VALUE)val);
+ rb_ary_clear(coverage);
return ST_CONTINUE;
}