diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-01-28 16:49:00 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-01-28 17:09:42 +0900 |
commit | 03df02e8716fa698c3dbc3fae0af80baa2096ddf (patch) | |
tree | c3316cff998b5bc1c3b1fc90731afeb8ae7d8372 | |
parent | 0a2e0db483883b5fe24233d6f83d38fd7c6db657 (diff) | |
download | ruby-03df02e8716fa698c3dbc3fae0af80baa2096ddf.tar.gz |
fix typo
Add missing `*`.
-rw-r--r-- | include/ruby/backward/cxxanyargs.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ruby/backward/cxxanyargs.hpp b/include/ruby/backward/cxxanyargs.hpp index b2491956d7..09ad976210 100644 --- a/include/ruby/backward/cxxanyargs.hpp +++ b/include/ruby/backward/cxxanyargs.hpp @@ -510,8 +510,8 @@ struct driver { template<bool b> struct specific< 2, b> : public engine< 2, VALUE(*)(VALUE, VALUE, VALUE)> {}; template<bool b> struct specific< 1, b> : public engine< 1, VALUE(*)(VALUE, VALUE)> {}; template<bool b> struct specific< 0, b> : public engine< 0, VALUE(*)(VALUE)> {}; - template<bool b> struct specific<-1, b> : public engine<-1, VALUE(*)(int argc, VALUE argv, VALUE self)> { - using engine<-1, VALUE(*)(int argc, VALUE argv, VALUE self)>::define; + template<bool b> struct specific<-1, b> : public engine<-1, VALUE(*)(int argc, VALUE *argv, VALUE self)> { + using engine<-1, VALUE(*)(int argc, VALUE *argv, VALUE self)>::define; static inline void define(VALUE c, T m, VALUE(*f)(int argc, VALUE *argv, VALUE self)) { F(c, m, reinterpret_cast<type *>(f), -1); } static inline void define(VALUE c, T m, VALUE(*f)(int argc, const VALUE *argv, VALUE self)) { F(c, m, reinterpret_cast<type *>(f), -1); } static inline void define(VALUE c, T m, VALUE(*f)(int argc, const VALUE *argv, VALUE self, VALUE)) { F(c, m, reinterpret_cast<type *>(f), -1); } @@ -556,8 +556,8 @@ struct driver0 { template<bool b> struct specific< 2, b> : public engine< 2, VALUE(*)(VALUE, VALUE, VALUE)> {}; template<bool b> struct specific< 1, b> : public engine< 1, VALUE(*)(VALUE, VALUE)> {}; template<bool b> struct specific< 0, b> : public engine< 0, VALUE(*)(VALUE)> {}; - template<bool b> struct specific<-1, b> : public engine<-1, VALUE(*)(int argc, VALUE argv, VALUE self)> { - using engine<-1, VALUE(*)(int argc, VALUE argv, VALUE self)>::define; + template<bool b> struct specific<-1, b> : public engine<-1, VALUE(*)(int argc, VALUE *argv, VALUE self)> { + using engine<-1, VALUE(*)(int argc, VALUE *argv, VALUE self)>::define; static inline void define(T m, VALUE(*f)(int argc, VALUE *argv, VALUE self)) { F(m, reinterpret_cast<type *>(f), -1); } static inline void define(T m, VALUE(*f)(int argc, const VALUE *argv, VALUE self)) { F(m, reinterpret_cast<type *>(f), -1); } static inline void define(T m, VALUE(*f)(int argc, const VALUE *argv, VALUE self, VALUE)) { F(m, reinterpret_cast<type *>(f), -1); } |