aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-03-01 01:57:39 +0000
committerAlan Modra <amodra@gmail.com>2005-03-01 01:57:39 +0000
commit055d1eb0f88fc42495d1fac45e89e5ef06ab207d (patch)
tree7d86251e419d3e373cce8a17971346625bc2c7ee /gas
parenta67a7b8bf54bf155b8dbce994708534176373434 (diff)
downloadgdb-055d1eb0f88fc42495d1fac45e89e5ef06ab207d.zip
gdb-055d1eb0f88fc42495d1fac45e89e5ef06ab207d.tar.gz
gdb-055d1eb0f88fc42495d1fac45e89e5ef06ab207d.tar.bz2
* config/tc-m68k.c (md_assemble): Don't use sizeof host short.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog1
-rw-r--r--gas/config/tc-m68k.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a75c8ca..9211426 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -23,6 +23,7 @@
* config/tc-i960.c (md_number_to_field): Warning fix.
(md_ri_to_chars): Use host byte order.
(get_cdisp, md_apply_fix3): Warning fix.
+ * config/tc-m68k.c (md_assemble): Don't use sizeof host short.
2005-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c
index bdd4cae..8d0ed5c 100644
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -4067,7 +4067,7 @@ md_assemble (char *str)
shorts_this_frag = 0;
if (n)
{
- toP = frag_more (n * sizeof (short));
+ toP = frag_more (n * 2);
while (n--)
{
md_number_to_chars (toP, (long) (*fromP), 2);