OSDN Git Service

* objc/objc-act.c (gen_declaration_1): Fix printf format.
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Sep 2003 17:53:41 +0000 (17:53 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 Sep 2003 17:53:41 +0000 (17:53 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71783 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/objc/objc-act.c

index b4fa411..d630c6e 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * objc/objc-act.c (gen_declaration_1): Fix printf format.
+
 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
 
        * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
index 40c7004..af294a9 100644 (file)
@@ -8480,7 +8480,8 @@ gen_declaration_1 (tree atype_or_adecl, char *buf)
          strcat (buf, gen_declarator (declarator, declbuf, ""));
        }
       if (width)
-       sprintf (buf + strlen (buf), ": %lu", TREE_INT_CST_LOW (width));
+       sprintf (buf + strlen (buf), ": " HOST_WIDE_INT_PRINT_UNSIGNED, 
+                TREE_INT_CST_LOW (width));
     }
 
   else