From e811b01e42db3829195919e8f847588b3dcc108a Mon Sep 17 00:00:00 2001 From: Tobias Predel Date: Wed, 9 Aug 2023 08:04:00 +0200 Subject: [PATCH] Avoid implicit type cast from `int` to `bool` `blink` is a variable of type `bool` --- src/document.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document.h b/src/document.h index 098dc3ae..27e2890b 100755 --- a/src/document.h +++ b/src/document.h @@ -332,7 +332,7 @@ struct Document { sw->DoPrepareDC(dc); ShiftToCenter(dc); DrawSelect(dc, selected, false, true); - if (reset) blink = 1; + if (reset) blink = true; else blink = !blink; DrawSelect(dc, selected, true, true); #endif