[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
      |       ^
```

https://github.com/ruby/date/commit/41aed5b746
This commit is contained in:
Nobuyoshi Nakada 2025-01-13 11:56:53 +09:00 committed by git
parent 691c895289
commit 384e6945ac

View File

@ -122,8 +122,9 @@ do { \
do { \
size_t l; \
l = read_digits(&str[si], slen - si, &n, w); \
if (l == 0) \
if (l == 0) { \
fail(); \
} \
si += l; \
} while (0)