summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-23 14:17:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-23 14:17:25 +0000
commit813a206d5652ef9d0db73459972e1c930d7bd0d8 (patch)
treee7d394deebb515efff2159a7fde3f0d9fbabefaa
parent502d0bab51c724fe164ff9f9cddd4235e3991e99 (diff)
parse.y: fix yytokentype function declarations
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 92790fd..44dd1cb 100644
--- a/parse.y
+++ b/parse.y
@@ -6166,7 +6166,7 @@ set_number_literal(struct parser_params *p, VALUE v,
return type;
}
-static int
+static enum yytokentype
set_integer_literal(struct parser_params *p, VALUE v, int suffix)
{
enum yytokentype type = tINTEGER;
@@ -6772,7 +6772,7 @@ parse_rational(struct parser_params *p, char *str, int len, int seen_point)
return rb_rational_new(v, rb_int_positive_pow(10, fraclen));
}
-static int
+static enum yytokentype
parse_numeric(struct parser_params *p, int c)
{
int is_float, seen_point, seen_e, nondigit;