[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35062: [PATCH 1/4] Remove redundant comparison
From: |
Konstantin Kharlamov |
Subject: |
bug#35062: [PATCH 1/4] Remove redundant comparison |
Date: |
Mon, 1 Apr 2019 01:37:39 +0300 |
* src/xterm.c: due to preceding checks it is bound to be 0 ≤ alpha ≤ 1.
Fixes LGTM warning: comparison is always true because 0 <= alpha.
---
src/xterm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xterm.c b/src/xterm.c
index f90d6713b02..e8f1e576a38 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -931,7 +931,7 @@ x_set_frame_alpha (struct frame *f)
return;
else if (alpha > 1.0)
alpha = 1.0;
- else if (0.0 <= alpha && alpha < alpha_min && alpha_min <= 1.0)
+ else if (alpha < alpha_min && alpha_min <= 1.0)
alpha = alpha_min;
opac = alpha * OPAQUE;
--
2.21.0