diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index c26eaff2135..02d44490936 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2020-09-24 Andrew Burgess + + * csky-dis.c (csky_output_operand): Enclose body of if in curly + braces. + 2020-09-24 Lili Cui * i386-dis.c (enum): Add PREFIX_0F01_REG_1_RM_5, diff --git a/opcodes/csky-dis.c b/opcodes/csky-dis.c index 67fb4ee87ed..ce20f58c473 100644 --- a/opcodes/csky-dis.c +++ b/opcodes/csky-dis.c @@ -847,8 +847,10 @@ csky_output_operand (char *str, struct operand const *oprnd, } case OPRND_TYPE_REGr4_r7: if (IS_CSKY_V1 (mach_flag)) - sprintf (buf, "%s-%s", get_gr_name (4), get_gr_name (7)); - strcat (str, buf); + { + sprintf (buf, "%s-%s", get_gr_name (4), get_gr_name (7)); + strcat (str, buf); + } break; case OPRND_TYPE_CONST1: strcat (str, "1");