* link.cc (link_symbol_table): Do not use intptr_t.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Mon, 29 Nov 2004 17:06:57 +0000 (18:06 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 29 Nov 2004 17:06:57 +0000 (17:06 +0000)
From-SVN: r91472

libjava/ChangeLog
libjava/link.cc

index 922f7cc228473dbe79e50babb001f5b228113823..baa11c4aa4939458d9e9cbad7438c9777f0d1f43 100644 (file)
@@ -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
index e611b766f24cd6323feb27ebfcc83e0263b1ea3f..2c5bd59fe82c57d67bbf3be81287ed54eeb571df 100644 (file)
@@ -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]);
            }
 
        }