diff options
author | Tom Tromey <tromey@cygnus.com> | 2000-02-15 22:59:23 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-02-15 22:59:23 +0000 |
commit | cdd59e7bdf1b6b4a5c42e81d4f2955eb4f7dd3fd (patch) | |
tree | 9a738f00c7acb0c465968cbd4d34d8c1b0d1296f /libjava/jni.cc | |
parent | a003f638eeb6ad379286d86e43a66bab17d9c96e (diff) | |
download | gcc-cdd59e7bdf1b6b4a5c42e81d4f2955eb4f7dd3fd.zip gcc-cdd59e7bdf1b6b4a5c42e81d4f2955eb4f7dd3fd.tar.gz gcc-cdd59e7bdf1b6b4a5c42e81d4f2955eb4f7dd3fd.tar.bz2 |
* jni.cc (mangled_name): Skip leading `(' in signature.
From-SVN: r31993
Diffstat (limited to 'libjava/jni.cc')
-rw-r--r-- | libjava/jni.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/jni.cc b/libjava/jni.cc index 18cbd93..0d78b32 100644 --- a/libjava/jni.cc +++ b/libjava/jni.cc @@ -1308,7 +1308,8 @@ mangled_name (jclass klass, _Jv_Utf8Const *func_name, const unsigned char *sig = (const unsigned char *) signature->data; limit = sig + signature->length; JvAssert (signature[0] == '('); - for (int i = 1; ; ++i) + ++sig; + while (1) { int ch = UTF8_GET (sig, limit); if (ch == ')' || ch < 0) |