From 191d98d306d48ba36d5a5a2eb3583b805a03b2c3 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Tue, 18 Mar 2025 10:56:12 -0400 Subject: Cleanup Signed-off-by: Andrew Opalach --- src/fruits/cmsrv/ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fruits/cmsrv') diff --git a/src/fruits/cmsrv/ui.c b/src/fruits/cmsrv/ui.c index 9059632..dced71d 100644 --- a/src/fruits/cmsrv/ui.c +++ b/src/fruits/cmsrv/ui.c @@ -83,7 +83,7 @@ static void render_log(struct cmsrv_ui *ui) u32 max_height = ncplane_dim_y(n) - 2; u32 size = ui->log.messages.count; - u32 index = size > max_height ? size - max_height : 0; + u32 index = (size > max_height) ? size - max_height : 0; for (u32 i = index; i < size; i++) { // We can't use putnstr here to control the width because lots of // these messages will have wide characters. -- cgit v1.2.3-101-g0448