From 016253c53f633379ac43d2552e1ba8c6f9180524 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sun, 2 Nov 2025 02:04:07 +0200 Subject: fix some parenthesis compiler warnings --- brailleboi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'brailleboi.c') diff --git a/brailleboi.c b/brailleboi.c index 7957d8b..82fbeeb 100644 --- a/brailleboi.c +++ b/brailleboi.c @@ -39,9 +39,9 @@ void braillePrint(int data) int braillePlot(int x, int y, image_buffer* buf) { //Check if plot is within bounds - if (x>buf->width | y>buf->height) + if ((x>buf->width) | (y>buf->height)) return 1; - buf->contents[(y-1)/4 * buf->char_width + (x-1)/2] |= 1<<(y-1)%4+(1-x%2)*4; + buf->contents[(y-1)/4 * buf->char_width + (x-1)/2] |= 1<<((y-1)%4+(1-x%2)*4); return 0; } -- cgit v1.2.3