* config/tc-m68k.c (md_assemble): Don't use sizeof host short.
authorAlan Modra <amodra@gmail.com>
Tue, 1 Mar 2005 01:57:39 +0000 (01:57 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 1 Mar 2005 01:57:39 +0000 (01:57 +0000)
gas/ChangeLog
gas/config/tc-m68k.c

index a75c8ca373d72a5d2912fb293c737bd23cc599a6..9211426befb73178e30064c96ca0f5bc37111612 100644 (file)
@@ -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>
 
index bdd4caeb0329455dded567e0d2fcf6e0f8ab1f39..8d0ed5cb4bcf4f34fb86cd51076d0e13bb20a7e5 100644 (file)
@@ -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);