From 9fa96c80515be69d49d0218f36223197193db8fe Mon Sep 17 00:00:00 2001 From: Bert Gijsbers Date: Sun, 10 Nov 2024 13:52:26 +0100 Subject: [PATCH] Remove silly casts. --- src/yscrollview.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yscrollview.cc b/src/yscrollview.cc index 24350ab5d..03561e196 100644 --- a/src/yscrollview.cc +++ b/src/yscrollview.cc @@ -77,8 +77,8 @@ void YScrollView::configure(const YRect2& r) { } bool YScrollView::handleScrollKeys(const XKeyEvent& key) { - return int(scrollVert->handleScrollKeys(key)) - | int(scrollHoriz->handleScrollKeys(key)); + return scrollVert->handleScrollKeys(key) + || scrollHoriz->handleScrollKeys(key); } void YScrollView::handleExpose(const XExposeEvent& expose) {