mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-03 01:40:17 -05:00
fix some buggy comparisons relating to signed/unsigned types
This commit is contained in:
parent
777a2eac51
commit
f3acfea815
2 changed files with 5 additions and 3 deletions
2
config.c
2
config.c
|
|
@ -427,7 +427,7 @@ parse_section_scrollback(const char *key, const char *value, struct config *conf
|
|||
conf->scrollback.indicator.text = NULL;
|
||||
|
||||
size_t len = mbstowcs(NULL, value, 0);
|
||||
if (len < 0) {
|
||||
if (len == (size_t)-1) {
|
||||
LOG_AND_NOTIFY_ERRNO(
|
||||
"%s:%d: [scrollback]: indicator-format: "
|
||||
"invalid value: %s", path, lineno, value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue