fixed build error for gcc 9
This commit is contained in:
@@ -243,14 +243,15 @@ _Bool Executable_Fetch(Executable *exe, int index, Opcode *opcode, Operand *ops,
|
|||||||
switch(type) {
|
switch(type) {
|
||||||
|
|
||||||
case OPTP_STRING:
|
case OPTP_STRING:
|
||||||
|
{
|
||||||
|
int data_offset = instr->operands[i].as_int;
|
||||||
|
|
||||||
int data_offset = instr->operands[i].as_int;
|
assert(data_offset < exe->headl);
|
||||||
|
|
||||||
assert(data_offset < exe->headl);
|
ops[i].type = OPTP_STRING;
|
||||||
|
ops[i].as_string = exe->head + data_offset;
|
||||||
ops[i].type = OPTP_STRING;
|
break;
|
||||||
ops[i].as_string = exe->head + data_offset;
|
}
|
||||||
break;
|
|
||||||
|
|
||||||
case OPTP_INT:
|
case OPTP_INT:
|
||||||
ops[i].type = OPTP_INT;
|
ops[i].type = OPTP_INT;
|
||||||
|
|||||||
Reference in New Issue
Block a user