diff options
Diffstat (limited to 'gas/config/tc-maxq.c')
-rw-r--r-- | gas/config/tc-maxq.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gas/config/tc-maxq.c b/gas/config/tc-maxq.c index dda7ca4..8c54763 100644 --- a/gas/config/tc-maxq.c +++ b/gas/config/tc-maxq.c @@ -494,7 +494,7 @@ md_convert_frag (object_headers * headers ATTRIBUTE_UNUSED, fragS * fragP) #endif { - unsigned char *opcode; + char *opcode; offsetT target_address; offsetT opcode_address; offsetT displacement_from_opcode_start; @@ -521,9 +521,7 @@ md_convert_frag (object_headers * headers ATTRIBUTE_UNUSED, || fragP->fr_subtype == NO_PREFIX)) { /* Its a displacement. */ - char *p = (char *) &opcode[0]; - - *p = (char) displacement_from_opcode_start; + *opcode = (char) displacement_from_opcode_start; } else { @@ -542,7 +540,6 @@ md_convert_frag (object_headers * headers ATTRIBUTE_UNUSED, if (fragP->fr_subtype != SHORT_PREFIX) { RELOC_ENUM reloc_type; - unsigned char *opcode; int old_fr_fix; int size = 2; @@ -557,7 +554,6 @@ md_convert_frag (object_headers * headers ATTRIBUTE_UNUSED, if (reloc_type == 1) size = 0; old_fr_fix = fragP->fr_fix; - opcode = (unsigned char *) fragP->fr_opcode; fragP->fr_fix += (size); |