diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/-test-/cxxanyargs/cxxanyargs.cpp | 5 |
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 } } |