diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-01 06:14:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-01 06:14:06 +0000 |
commit | dcd4914b3a68f410a43ed9c2bc6d042e6398bb89 (patch) | |
tree | b355e201c1a3c553e08d1ee403658ec8aa22481a /ext | |
parent | c4816a11e4fd954a12f6cb12fc5ba23adf8d6a4b (diff) | |
download | ruby-dcd4914b3a68f410a43ed9c2bc6d042e6398bb89.tar.gz |
adjust indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/date/date_strptime.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/ext/date/date_strptime.c b/ext/date/date_strptime.c index 1cc568b69f..00e03e94ee 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': { |