diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-01-13 11:56:53 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-01-13 03:12:28 +0000 |
commit | 384e6945ac64dba1c41d6ca714a6d7750d92ddb2 () | |
tree | fdd86c030fa5cc7e22ee177908bcb0382dde5eb3 /ext/date/date_strptime.c | |
parent | 691c895289d757664ab5265a866ba51cf6747601 (diff) |
[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://.com/ruby/date/commit/41aed5b746
-rw-r--r-- | ext/date/date_strptime.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -122,8 +122,9 @@ do { \ do { \ size_t l; \ l = read_digits(&str[si], slen - si, &n, w); \ - if (l == 0) \ fail(); \ si += l; \ } while (0) |