missed \0-9 for the gold numbers from qccx

This commit is contained in:
Bill Currie 2010-01-13 06:22:01 +00:00 committed by Jeff Teunissen
parent 36fe939ea5
commit 07b61aa23f
2 changed files with 15 additions and 9 deletions

View File

@ -514,14 +514,20 @@ make_string (char *token, char **end)
case '5':
case '6':
case '7':
for (i = c = 0; i < 3
&& *token >= '0'
&& *token <= '7'; i++, token++) {
c *= 8;
c += *token - '0';
if (!options.qccx_escapes) {
for (i = c = 0; i < 3
&& *token >= '0'
&& *token <= '7'; i++, token++) {
c *= 8;
c += *token - '0';
}
if (!*token)
error (0, "EOF inside quote");
break;
}
if (!*token)
error (0, "EOF inside quote");
case 8:
case 9:
c = 18 + c - '0';
break;
case 'x':
c = 0;
@ -621,7 +627,7 @@ make_string (char *token, char **end)
break;
}
} else if (c == quote) {
break;;
break;
}
if (boldnext)
c = c ^ 0x80;

View File

@ -97,7 +97,7 @@ new_struct_field (struct_t *strct, type_t *type, const char *name,
if (size > strct->size)
strct->size = size;
} else {
field->offset = strct->size;;
field->offset = strct->size;
strct->size += type_size (type);
}
field->next = 0;