diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2004-11-29 18:06:57 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2004-11-29 17:06:57 +0000 |
commit | 67bbb1e12241eba7dca619c2984d6abb08214137 (patch) | |
tree | 7473206aea72aa62cb32d3395e381cf3eafd43f5 /libjava | |
parent | c6f9f83bc8e66feb890dc0c9804b59060b5a108e (diff) | |
download | gcc-67bbb1e12241eba7dca619c2984d6abb08214137.zip gcc-67bbb1e12241eba7dca619c2984d6abb08214137.tar.gz gcc-67bbb1e12241eba7dca619c2984d6abb08214137.tar.bz2 |
* link.cc (link_symbol_table): Do not use intptr_t.
From-SVN: r91472
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/link.cc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 922f7cc..baa11c4 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2004-11-29 Eric Botcazou <ebotcazou@libertysurf.fr> + + * link.cc (link_symbol_table): Do not use intptr_t. + 2004-11-28 Mark Wielaard <mark@klomp.org> * mauve-libgcj: Disable SpinnerListModel, SwingUtilities and diff --git a/libjava/link.cc b/libjava/link.cc index e611b76..2c5bd59 100644 --- a/libjava/link.cc +++ b/libjava/link.cc @@ -1073,7 +1073,7 @@ _Jv_Linker::link_symbol_table (jclass klass) if (found) { klass->itable->addresses[index * 2] = cls; - klass->itable->addresses[index * 2 + 1] = (void *)(intptr_t) i; + klass->itable->addresses[index * 2 + 1] = (void *)(unsigned long) i; if (debug_link) { fprintf (stderr, " interfaces[%d] = %p (interface %s@%p : %s(%s))\n", @@ -1085,7 +1085,7 @@ _Jv_Linker::link_symbol_table (jclass klass) (const char*)signature->chars()); fprintf (stderr, " [%d] = offset %d\n", index + 1, - (int)(intptr_t)klass->itable->addresses[index * 2 + 1]); + (int)(unsigned long)klass->itable->addresses[index * 2 + 1]); } } |