diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 12:43:00 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 12:43:00 -0400 |
| commit | 6583fe9b389a6b4698f9364945885e6783506886 (patch) | |
| tree | 0464456d177eab051b03f29a74218a45b301f174 /src/formatter/utils.c | |
| parent | 0cfae753aa131f949253f3fba1e3a36c2bde6ac0 (diff) | |
Convert to using more zero values for `none`
Diffstat (limited to 'src/formatter/utils.c')
| -rw-r--r-- | src/formatter/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/formatter/utils.c b/src/formatter/utils.c index 9cd0227d..9829df4b 100644 --- a/src/formatter/utils.c +++ b/src/formatter/utils.c @@ -35,7 +35,7 @@ OptionalText_t next_comment(Table_t comments, const char **pos, const char *end) bool range_has_comment(const char *start, const char *end, Table_t comments) { OptionalText_t comment = next_comment(comments, &start, end); - return (comment.length >= 0); + return (comment.tag != TEXT_NONE); } CONSTFUNC int suggested_blank_lines(ast_t *first, ast_t *second) { |
