aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-06-26 16:01:03 +1200
committerDavid Phillips <david@sighup.nz>2017-06-26 16:01:03 +1200
commit48a33ccaa5552df96b2afdde87e7e6aac77cd902 (patch)
tree4e7ee784f3d22de077f01bf743753d84d84f242c
parentabe9852284029f05c1300949dede7eaebddc343a (diff)
downloadsand-leek-48a33ccaa5552df96b2afdde87e7e6aac77cd902.tar.xz
Change char array to unsigned to avoid (pedantic) overflow
-rw-r--r--sand-leek.c2
1 files changed, 1 insertions, 1 deletions
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 */