Fix C99 construct without -c99 (#17077)

* Fix C99 construct without -c99

Co-authored-by: Anton Kochkov <xvilka@gmail.com>
This commit is contained in:
Michael Scherer 2020-06-18 08:33:26 +02:00 committed by GitHub
parent e443dfa0a1
commit db5cce396d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -424,13 +424,14 @@ static const ut8 *parse_line_header (
if (f) {
fprintf (f, " Opcodes:\n");
}
for (int i = 1; i <= hdr->opcode_base - 1; i++) {
size_t i;
for (i = 1; i < hdr->opcode_base; i++) {
if (buf + 2 > buf_end) {
break;
}
hdr->std_opcode_lengths[i] = READ (buf, ut8);
if (f) {
fprintf (f, " Opcode %d has %d arg\n", i, hdr->std_opcode_lengths[i]);
fprintf (f, " Opcode %zu has %d arg\n", i, hdr->std_opcode_lengths[i]);
}
}
if (f) {