diff options
Diffstat (limited to 'gas/config/tc-ft32.c')
-rw-r--r-- | gas/config/tc-ft32.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gas/config/tc-ft32.c b/gas/config/tc-ft32.c index 50958d5..7e68e83 100644 --- a/gas/config/tc-ft32.c +++ b/gas/config/tc-ft32.c @@ -230,7 +230,7 @@ md_assemble (char *str) if (nlen == 0) as_bad (_("can't find opcode ")); - opcode = (ft32_opc_info_t *) str_hash_find (opcode_hash_control, op_start); + opcode = str_hash_find (opcode_hash_control, op_start); *op_end = pend; if (opcode == NULL) @@ -530,12 +530,11 @@ static valueT md_chars_to_number (char * buf, int n) { valueT result = 0; - unsigned char * where = (unsigned char *) buf; while (n--) { result <<= 8; - result |= (where[n] & 255); + result |= (buf[n] & 255); } return result; @@ -581,7 +580,7 @@ md_apply_fix (fixS *fixP ATTRIBUTE_UNUSED, } /* We don't actually support subtracting a symbol. */ - if (fixP->fx_subsy != (symbolS *) NULL) + if (fixP->fx_subsy != NULL) as_bad_subtract (fixP); switch (fixP->fx_r_type) |