From: Richard Russon Date: Sat, 16 Feb 2019 12:45:22 +0000 (+0000) Subject: boolify exact X-Git-Tag: 2019-10-25~369^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f32898d52c77cabccdeb7198814da57d3ca42e60;p=neomutt boolify exact --- diff --git a/pattern.c b/pattern.c index de51bb602..2a67f36e8 100644 --- a/pattern.c +++ b/pattern.c @@ -616,7 +616,7 @@ static bool eat_date(struct Pattern *pat, struct Buffer *s, struct Buffer *err) =3d exactly three days ago */ time_t now = time(NULL); struct tm *tm = localtime(&now); - int exact = 0; + bool exact = false; if (buf.data[0] == '<') { @@ -629,7 +629,7 @@ static bool eat_date(struct Pattern *pat, struct Buffer *s, struct Buffer *err) tm = &max; if (buf.data[0] == '=') - exact++; + exact = true; } /* Reset the HMS unless we are relative matching using one of those