aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-h8300.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-h8300.c')
-rw-r--r--gas/config/tc-h8300.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c
index eeee4c8..d7bb329 100644
--- a/gas/config/tc-h8300.c
+++ b/gas/config/tc-h8300.c
@@ -1937,8 +1937,7 @@ md_assemble (char *str)
while (*++slash)
*slash = TOLOWER (*slash);
- instruction = (const struct h8_instruction *)
- str_hash_find (opcode_hash_control, op_start);
+ instruction = str_hash_find (opcode_hash_control, op_start);
if (instruction == NULL)
{
@@ -2224,7 +2223,7 @@ valueT
md_section_align (segT segment, valueT size)
{
int align = bfd_section_alignment (segment);
- return ((size + (1 << align) - 1) & (-1U << align));
+ return (size + ((valueT) 1 << align) - 1) & -((valueT) 1 << align);
}
void