summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-01 06:14:06 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-01 06:14:06 (GMT)
commitdcd4914b3a68f410a43ed9c2bc6d042e6398bb89 (patch)
treeb355e201c1a3c553e08d1ee403658ec8aa22481a /ext/date
parentc4816a11e4fd954a12f6cb12fc5ba23adf8d6a4b (diff)
adjust indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/date_strptime.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/ext/date/date_strptime.c b/ext/date/date_strptime.c
index 1cc568b..00e03e9 100644
--- a/ext/date/date_strptime.c
+++ b/ext/date/date_strptime.c
@@ -529,24 +529,24 @@ date__strptime_internal(const char *str, size_t slen,
goto matched;
case 'Y':
- {
- 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;
- }
+ {
+ 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;
+ }
case 'y':
{