diff options
author | Bryce McKinlay <bryce@albatross.co.nz> | 2000-11-22 05:47:26 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2000-11-22 05:47:26 +0000 |
commit | c385cdf6a8849798c0f76ace6ae7ecbb99c84f62 (patch) | |
tree | 156ac17ef380df212b4023be55973177160ecca0 /gcc/java/jcf-parse.c | |
parent | ee5f86dcd77e38029dd8c6e21d31cb123d8472cc (diff) | |
download | gcc-c385cdf6a8849798c0f76ace6ae7ecbb99c84f62.zip gcc-c385cdf6a8849798c0f76ace6ae7ecbb99c84f62.tar.gz gcc-c385cdf6a8849798c0f76ace6ae7ecbb99c84f62.tar.bz2 |
jcf-parse.c (get_constant): Call UT8_CHAR_LENGTH on `utf8', not the scratch buffer.
2000-11-22 Bryce McKinlay <bryce@albatross.co.nz>
* jcf-parse.c (get_constant): Call UT8_CHAR_LENGTH on `utf8', not the
scratch buffer.
From-SVN: r37646
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r-- | gcc/java/jcf-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |