Browse files

Merge pull request #14 from brixen/master

Fix to build bzip2-ruby with Rubinius.
  • Loading branch information...
2 parents 3ed94da + 6cf4483 commit 58a91079eaf57878bd7a783df4090656e7c95037 @brianmario committed Sep 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 ext/bzip2/writer.c
View
2 ext/bzip2/writer.c
@@ -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;
}

0 comments on commit 58a9107

Please sign in to comment.