aboutsummaryrefslogtreecommitdiff
path: root/libjava/jni.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-02-15 22:59:23 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-02-15 22:59:23 +0000
commitcdd59e7bdf1b6b4a5c42e81d4f2955eb4f7dd3fd (patch)
tree9a738f00c7acb0c465968cbd4d34d8c1b0d1296f /libjava/jni.cc
parenta003f638eeb6ad379286d86e43a66bab17d9c96e (diff)
downloadgcc-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.cc3
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)