commit 6da2fd325f0919e883d21adac6d1614852fa810f
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Sat Jul 15 17:09:05 2023 +0300
Commit: Turo Lamminen <turol@users.noreply.github.com>
CommitDate: Mon Jul 17 21:24:23 2023 +0300
Fix use of comma where semicolon was clearly intended
This was also UB because of assignment with no sequence point
---
textscreen/txt_scrollpane.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/textscreen/txt_scrollpane.c b/textscreen/txt_scrollpane.c
index 2388d0cc..7c4508a8 100644
--- a/textscreen/txt_scrollpane.c
+++ b/textscreen/txt_scrollpane.c
@@ -173,9 +173,9 @@ static void TXT_ScrollPaneDrawer(TXT_UNCAST_ARG(scrollpane))
// We set a clipping area of the scroll pane.
- x1 = scrollpane->widget.x,
- y1 = scrollpane->widget.y,
- x2 = x1 + scrollpane->w,
+ x1 = scrollpane->widget.x;
+ y1 = scrollpane->widget.y;
+ x2 = x1 + scrollpane->w;
y2 = y1 + scrollpane->h;
scrollbars = NeedsScrollbars(scrollpane);