diff options
| author | DrNuget <drnuget@outlook.com> | 2025-11-02 02:04:07 +0200 |
|---|---|---|
| committer | DrNuget <drnuget@outlook.com> | 2025-11-02 02:04:07 +0200 |
| commit | 016253c53f633379ac43d2552e1ba8c6f9180524 (patch) | |
| tree | a89fc705702ececc06129a49ff3a32f595dc515d /brailleboi.c | |
| parent | 189050b3af31eb430203c3f04a65157fdaf6cdfc (diff) | |
| download | brailleboi-016253c53f633379ac43d2552e1ba8c6f9180524.tar.gz | |
fix some parenthesis compiler warnings
Diffstat (limited to 'brailleboi.c')
| -rw-r--r-- | brailleboi.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
