1999-08-17 H.J. Lu <hjl@gnu.org>
authorIan Lance Taylor <ian@airs.com>
Tue, 17 Aug 1999 07:56:29 +0000 (07:56 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 17 Aug 1999 07:56:29 +0000 (07:56 +0000)
* ld-cdtest/cdtest-foo.cc (Foo::init_foo): Use "%ld" for sizeof.

ld/testsuite/ChangeLog
ld/testsuite/ld-cdtest/cdtest-foo.cc

index 1dbe50d..0bf1f59 100644 (file)
@@ -1,3 +1,7 @@
+1999-08-17  H.J. Lu  <hjl@gnu.org>
+
+       * ld-cdtest/cdtest-foo.cc (Foo::init_foo): Use "%ld" for sizeof.
+
 1999-08-09  Jakub Jelinek  <jj@ultra.linux.cz>
 
        * ld-elfvers/vers.exp: Run tests on sparc*-*-linux*.
index 615e33c..c7d41a9 100644 (file)
@@ -22,7 +22,7 @@ int Foo::foos = 0;
 
 void Foo::init_foo ()
 {
-    printf ("BROKENLY calling Foo::init_foo from __init_start; size_of(Foo) = %d\n", sizeof(Foo));
+    printf ("BROKENLY calling Foo::init_foo from __init_start; size_of(Foo) = %ld\n", (long) sizeof(Foo));
     foos = FOOLISH_NUMBER;
 }