1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

adjust indent

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-09-01 06:14:06 +00:00
parent c4816a11e4
commit dcd4914b3a

View file

@ -529,24 +529,24 @@ date__strptime_internal(const char *str, size_t slen,
goto matched;
case 'Y':
{
VALUE n;
int sign = 1;
{
VALUE n;
int sign = 1;
if (issign(str[si])) {
if (str[si] == '-')
sign = -1;
si++;
}
if (NUM_PATTERN_P())
READ_DIGITS(n, 4);
else
READ_DIGITS_MAX(n);
if (sign == -1)
n = f_negate(n);
set_hash("year", n);
goto matched;
}
if (issign(str[si])) {
if (str[si] == '-')
sign = -1;
si++;
}
if (NUM_PATTERN_P())
READ_DIGITS(n, 4);
else
READ_DIGITS_MAX(n);
if (sign == -1)
n = f_negate(n);
set_hash("year", n);
goto matched;
}
case 'y':
{