Fix alignment warnings from Clang

This commit is contained in:
Alexis Engelke
2019-08-18 18:13:39 +02:00
parent 0f2681b138
commit bb3c7a4a4f
2 changed files with 5 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ fd_format(const FdInstr* instr, char* buffer, size_t len)
if (op_type == FD_OT_NONE)
break;
const char* op_type_name = "reg\0imm\0mem" + op_type * 4 - 4;
const char* op_type_name = &"reg\0imm\0mem"[op_type * 4] - 4;
FMT_CONCAT(buf, end, " %s%u:", op_type_name, FD_OP_SIZE(instr, i));
switch (op_type)