aboutsummaryrefslogtreecommitdiff
path: root/libjava/name-finder.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-02-17 21:52:44 -0500
committerJason Merrill <jason@gcc.gnu.org>2002-02-17 21:52:44 -0500
commit21fe5f6a237a7a00926872614dd35dd2924348f9 (patch)
tree072c351afd7a4ed8a7e0bca3305104cb627eeea2 /libjava/name-finder.cc
parenta615ca3e76df2e5c9339be12602306e53370a112 (diff)
downloadgcc-21fe5f6a237a7a00926872614dd35dd2924348f9.zip
gcc-21fe5f6a237a7a00926872614dd35dd2924348f9.tar.gz
gcc-21fe5f6a237a7a00926872614dd35dd2924348f9.tar.bz2
name-finder.cc (toHex): Use word mode, not long long.
* name-finder.cc (toHex): Use word mode, not long long. * gnu/gcj/convert/natIconv.cc (write): Avoid sign-compare warning. From-SVN: r49829
Diffstat (limited to 'libjava/name-finder.cc')
-rw-r--r--libjava/name-finder.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/name-finder.cc b/libjava/name-finder.cc
index 5b6e111..3cf1043 100644
--- a/libjava/name-finder.cc
+++ b/libjava/name-finder.cc
@@ -112,7 +112,8 @@ _Jv_name_finder::_Jv_name_finder (char *executable)
void
_Jv_name_finder::toHex (void *p)
{
- unsigned long long n = (unsigned long long)p;
+ typedef unsigned word_t __attribute ((mode (word)));
+ word_t n = (word_t) p;
int digits = sizeof (void *) * 2;
strcpy (hex, "0x");