From ce969034dca361e95d78f80865e3dd91d16d5d7c Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Fri, 19 Jun 2020 10:44:56 +0200 Subject: [PATCH] sys/od/od: fix -Werror=char-subscripts --- sys/od/od.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/od/od.c b/sys/od/od.c index 490ccf0417..b95080170a 100644 --- a/sys/od/od.c +++ b/sys/od/od.c @@ -42,8 +42,8 @@ void od_hex_dump(const void *data, size_t data_len, uint8_t width) } print_str(" "); for(unsigned k = 0; k < (i % width) + 1; k++){ - if(isprint(((char *)data)[str_pos+k])){ - putchar(((char *)data)[str_pos+k]); + if(isprint(((uint8_t *)data)[str_pos+k])){ + putchar(((uint8_t *)data)[str_pos+k]); } else{ putchar('.');