mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 05:59:00 +02:00
[ruby/date] Enclose dangling else in braces and fix -Wmisleading-indentation
```
date_strptime.c:253:324: warning: misleading indentation;
statement is not part of the previous 'if' [-Wmisleading-indentation]
253 | ...((VALUE)RUBY_Qtrue)); return 0; } while (0); si += l; } while (0);
| ^
date_strptime.c:252:7: note: previous statement is here
252 | else
| ^
```
41aed5b746
This commit is contained in:
parent
691c895289
commit
384e6945ac
1 changed files with 2 additions and 1 deletions
|
@ -122,8 +122,9 @@ do { \
|
||||||
do { \
|
do { \
|
||||||
size_t l; \
|
size_t l; \
|
||||||
l = read_digits(&str[si], slen - si, &n, w); \
|
l = read_digits(&str[si], slen - si, &n, w); \
|
||||||
if (l == 0) \
|
if (l == 0) { \
|
||||||
fail(); \
|
fail(); \
|
||||||
|
} \
|
||||||
si += l; \
|
si += l; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue