mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
Oops avoid using case range gcc extension.
This commit is contained in:
parent
93c82174ea
commit
b4ac04952a
1 changed files with 8 additions and 1 deletions
9
data.c
9
data.c
|
@ -171,7 +171,14 @@ struct data data_copy_escape_string(char *s, int len)
|
|||
case 'r':
|
||||
q[d.len++] = '\r';
|
||||
break;
|
||||
case '0' ... '7':
|
||||
case '0':
|
||||
case '1':
|
||||
case '2':
|
||||
case '3':
|
||||
case '4':
|
||||
case '5':
|
||||
case '6':
|
||||
case '7':
|
||||
i--; /* need to re-read the first digit as
|
||||
* part of the octal value */
|
||||
q[d.len++] = get_oct_char(s, &i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue