[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 267c9b54b16 3/3: Remove redundant conversion from bool to bool
From: |
Stefan Kangas |
Subject: |
master 267c9b54b16 3/3: Remove redundant conversion from bool to bool |
Date: |
Mon, 8 Jan 2024 01:24:58 -0500 (EST) |
branch: master
commit 267c9b54b16e50f76e5ce88ff153d1a24d093563
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
Remove redundant conversion from bool to bool
* src/xdisp.c (maybe_produce_line_number): Remove redundant conversion
of the value of an expression from bool to bool.
---
src/xdisp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xdisp.c b/src/xdisp.c
index f8670c6ecb5..14cf030ca4e 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -24648,7 +24648,7 @@ maybe_produce_line_number (struct it *it)
/* Produce the glyphs for the line number. */
struct it tem_it;
char lnum_buf[INT_STRLEN_BOUND (ptrdiff_t) + 1];
- bool beyond_zv = IT_BYTEPOS (*it) >= ZV_BYTE ? true : false;
+ bool beyond_zv = IT_BYTEPOS (*it) >= ZV_BYTE;
ptrdiff_t lnum_offset = -1; /* to produce 1-based line numbers */
int lnum_face_id = merge_faces (it->w, Qline_number, 0, DEFAULT_FACE_ID);
int current_lnum_face_id