mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/od/od: fix -Werror=char-subscripts
This commit is contained in:
parent
4c05c0207f
commit
ce969034dc
@ -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('.');
|
||||
|
Loading…
Reference in New Issue
Block a user