Skip to content

Commit

Permalink
Merge pull request #14 from brixen/master
Browse files Browse the repository at this point in the history
Fix to build bzip2-ruby with Rubinius.
  • Loading branch information
brianmario committed Sep 12, 2012
2 parents 3ed94da + 6cf4483 commit 58a9107
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/bzip2/writer.c
Expand Up @@ -161,9 +161,11 @@ VALUE bz_writer_close(VALUE obj) {

Get_BZ2(obj, bzf);
res = bz_writer_internal_close(bzf);
#ifndef RUBINIUS
if (!NIL_P(res) && (bzf->flags & BZ2_RB_INTERNAL)) {
RBASIC(res)->klass = rb_cString;
}
#endif
return res;
}

Expand Down

0 comments on commit 58a9107

Please sign in to comment.