From: Bastian Dehn Date: Sat, 15 Feb 2025 10:00:44 +0000 (+0100) Subject: add missing brackets X-Git-Tag: v1.0.36^2~5 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=2c3fdbe2eb48e966092e77d5798a0f5ce14fbfd5;p=sane-kds-s2000w-net.git add missing brackets --- 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; }