Fix a misplaced line.

This commit is contained in:
Bill Currie 2012-11-15 11:00:51 +09:00
parent 206ab9a997
commit 74ac4ee142

View file

@ -432,6 +432,7 @@ qfo_types (qfo_t *qfo)
for (type_ptr = 4; type_ptr < qfo->spaces[qfo_type_space].data_size; for (type_ptr = 4; type_ptr < qfo->spaces[qfo_type_space].data_size;
type_ptr += type->size) { type_ptr += type->size) {
type = &QFO_STRUCT (qfo, qfo_type_space, qfot_type_t, type_ptr);
if (qfo->spaces[qfo_type_space].data_size - type_ptr < 2) { if (qfo->spaces[qfo_type_space].data_size - type_ptr < 2) {
printf ("%-5x overflow, can't check size. %x\n", type_ptr, printf ("%-5x overflow, can't check size. %x\n", type_ptr,
qfo->spaces[qfo_type_space].data_size); qfo->spaces[qfo_type_space].data_size);
@ -443,7 +444,6 @@ qfo_types (qfo_t *qfo)
qfo->spaces[qfo_type_space].data_size); qfo->spaces[qfo_type_space].data_size);
continue; continue;
} }
type = &QFO_STRUCT (qfo, qfo_type_space, qfot_type_t, type_ptr);
if (type->ty < 0 || type->ty >= NUM_META) if (type->ty < 0 || type->ty >= NUM_META)
meta = va ("invalid meta: %d", type->ty); meta = va ("invalid meta: %d", type->ty);
else else