gas: Silence GCC 10 warning on tc-cr16.c
[deliverable/binutils-gdb.git] / gas / config / tc-cr16.c
index 7a8f33b889756a160a5ff9b7f20ea3adc7714c91..901838398ecd38af97a00230b77a1a976f8c4883 100644 (file)
@@ -642,7 +642,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, fragS *fragP)
 {
   /* 'opcode' points to the start of the instruction, whether
      we need to change the instruction's fixed encoding.  */
-  char *opcode = fragP->fr_literal + fragP->fr_fix;
+  char *opcode = &fragP->fr_literal[0] + fragP->fr_fix;
   bfd_reloc_code_real_type reloc;
 
   subseg_change (sec, 0);
This page took 0.02285 seconds and 4 git commands to generate.