aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-parse.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 1bce1cb..c98bc6a 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
+
+ * jcf-parse.c (get_constant): Call UT8_CHAR_LENGTH on `utf8', not the
+ scratch buffer.
+
2000-11-20 Tom Tromey <tromey@cygnus.com>
* jv-scan.c (help): Document --complexity.
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index aa56811..aebd4a5 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -358,7 +358,7 @@ get_constant (jcf, index)
for (i = 0; i < str_len; i++)
{
int char_value;
- int char_len = UT8_CHAR_LENGTH (*str);
+ int char_len = UT8_CHAR_LENGTH (*utf8);
switch (char_len)
{
case 1: