1999-08-17 H.J. Lu <hjl@gnu.org>

* ld-cdtest/cdtest-foo.cc (Foo::init_foo): Use "%ld" for sizeof.
This commit is contained in:
Ian Lance Taylor 1999-08-17 07:56:29 +00:00
parent 1396cd2d7f
commit 5be8a006bb
2 changed files with 5 additions and 1 deletions

View 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*.

View 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;
}