1
0
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:
Francisco Molina 2020-06-19 10:44:56 +02:00
parent 4c05c0207f
commit ce969034dc
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -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('.');