From c385cdf6a8849798c0f76ace6ae7ecbb99c84f62 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Wed, 22 Nov 2000 05:47:26 +0000 Subject: [PATCH] jcf-parse.c (get_constant): Call UT8_CHAR_LENGTH on `utf8', not the scratch buffer. 2000-11-22 Bryce McKinlay * jcf-parse.c (get_constant): Call UT8_CHAR_LENGTH on `utf8', not the scratch buffer. From-SVN: r37646 --- gcc/java/ChangeLog | 5 +++++ gcc/java/jcf-parse.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 1bce1cb1f3b0..c98bc6a99237 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-11-22 Bryce McKinlay + + * jcf-parse.c (get_constant): Call UT8_CHAR_LENGTH on `utf8', not the + scratch buffer. + 2000-11-20 Tom Tromey * jv-scan.c (help): Document --complexity. diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index aa56811a630b..aebd4a5b1125 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: