summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-30 05:32:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-30 05:32:32 +0000
commit652b84b986ebef026776fda4066602df24abe29c (patch)
tree863e8e6b7fbdd849efc780026f7ccdb86b0c7d0e /ext/zlib
parent299d89bdbd6382eff5435535ac87af0c66b83eaf (diff)
1.9.3 does not have rb_exc_new_str(). use rb_exc_new3() instead of it.
this fixes the test failures introduced by previous commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@44755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index a3a9d3e8e8..750074101e 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -294,8 +294,8 @@ raise_zlib_error(int err, const char *msg)
rb_sys_fail(msg);
/* no return */
default:
- exc = rb_exc_new_str(cZError,
- rb_sprintf("unknown zlib error %d: %s", err, msg));
+ exc = rb_exc_new3(cZError,
+ rb_sprintf("unknown zlib error %d: %s", err, msg));
}
rb_exc_raise(exc);