diff options
author | Benoit Daloze <[email protected]> | 2020-03-28 13:03:17 +0100 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2020-03-28 13:03:17 +0100 |
commit | 5fa12dafa8cb8f7158452356611967880745bba5 (patch) | |
tree | a91e34ed9e9b6a7c01395b977405e7ad1efa41a7 /eval.c | |
parent | 5b48686691c2443d8d7113e593494c4d9302da0e (diff) |
The last argument of rb_rescue2() should always be (VALUE)0
* Otherwise it might segfault, since C has no idea of the type of varargs,
and the C code must assume all varargs are VALUE.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -974,7 +974,7 @@ rb_rescue2(VALUE (* b_proc) (VALUE), VALUE data1, /*! * \copydoc rb_rescue2 - * \param[in] args exception classes, terminated by 0. + * \param[in] args exception classes, terminated by (VALUE)0. */ VALUE rb_vrescue2(VALUE (* b_proc) (VALUE), VALUE data1, |