From 48a33ccaa5552df96b2afdde87e7e6aac77cd902 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 26 Jun 2017 16:01:03 +1200 Subject: Change char array to unsigned to avoid (pedantic) overflow --- sand-leek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sand-leek.c b/sand-leek.c index 305754f..3a9a49e 100644 --- a/sand-leek.c +++ b/sand-leek.c @@ -177,7 +177,7 @@ STOP: int set_raw_params(void) { /* bitmasks to be used to compare remainder bits */ - static char bitmasks[] = { + static unsigned char bitmasks[] = { [1] = 0xF8, /* 5 MSB */ [2] = 0xC0, /* 2 MSB */ [3] = 0xFE, /* 7 MSB */ -- cgit v1.1