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
This commit is contained in:
Bryce McKinlay 2000-11-22 05:47:26 +00:00 committed by Bryce McKinlay
parent ee5f86dcd7
commit c385cdf6a8
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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: