From 267c9b54b16e50f76e5ce88ff153d1a24d093563 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 7 Jan 2024 22:19:06 +0100 Subject: [PATCH] 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 -- 2.39.2