From 2c3fdbe2eb48e966092e77d5798a0f5ce14fbfd5 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 15 Feb 2025 11:00:44 +0100 Subject: [PATCH] add missing brackets --- src/kds_s2000w_image_converter_netpbm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kds_s2000w_image_converter_netpbm.c b/src/kds_s2000w_image_converter_netpbm.c index 1ec6a96..da5a6cf 100644 --- a/src/kds_s2000w_image_converter_netpbm.c +++ b/src/kds_s2000w_image_converter_netpbm.c @@ -177,7 +177,7 @@ void _kds_s2000w_image_converter_set_pixels(uint8_t data_byte, xel* pixels) uint8_t bit = 0; int32_t last_idx = BYTE_BITS - 1; for (uint32_t i = 0; i < BYTE_BITS; i++) { - bit = data_byte >> last_idx - i & 1; + bit = data_byte >> (last_idx - i) & 1; if (bit == 0) pixels[i].b = PNM_MAXMAXVAL; } -- 2.39.5