aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-19 16:19:48 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-19 16:19:48 +0000
commitcddd1665fddfc484196f6e75fba9242ac4d20393 (patch)
treef19cf555061614db2a556383bca543625b101c9b /internal.h
parent602484c93ae8562a8b7fb174ef735146f39ac935 (diff)
downloadruby-cddd1665fddfc484196f6e75fba9242ac4d20393.tar.gz
internal.h: use the same declaration as definition
range.c: cast the function type to meet the declaration This change is for fixing build error on AppVeyor: https://ci.appveyor.com/project/ruby/ruby/build/1.0.8177 string.c ../string.c(4330) : error C4028: formal parameter 2 different from declaration git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h
index ae5fef437a..e72785be56 100644
--- a/internal.h
+++ b/internal.h
@@ -2013,7 +2013,7 @@ VALUE rb_gcd_gmp(VALUE x, VALUE y);
/* internal use */
VALUE rb_setup_fake_str(struct RString *fake_str, const char *name, long len, rb_encoding *enc);
#endif
-VALUE rb_str_upto_endless_each(VALUE, VALUE (*each)(), VALUE);
+VALUE rb_str_upto_endless_each(VALUE, VALUE (*each)(VALUE, VALUE), VALUE);
/* thread.c (export) */
int ruby_thread_has_gvl_p(void); /* for ext/fiddle/closure.c */