summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/-test-/cxxanyargs/cxxanyargs.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/-test-/cxxanyargs/cxxanyargs.cpp b/ext/-test-/cxxanyargs/cxxanyargs.cpp
index 9912a6694c..28d99b98ba 100644
--- a/ext/-test-/cxxanyargs/cxxanyargs.cpp
+++ b/ext/-test-/cxxanyargs/cxxanyargs.cpp
@@ -178,8 +178,9 @@ namespace test_rb_catch {
VALUE
test(VALUE self)
{
- rb_catch(nullptr, RUBY_METHOD_FUNC(catcher), self); // old
- return rb_catch(nullptr, catcher, self); // new
+ static const char *zero = 0;
+ rb_catch(zero, RUBY_METHOD_FUNC(catcher), self); // old
+ return rb_catch(zero, catcher, self); // new
}
}