diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-02-22 09:15:30 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-02-22 09:15:30 +0000 |
commit | a32999346f5fcfda44737f45e93e631d421c608e (patch) | |
tree | b7f7bf0ee6f9e54ac14932bc5d87f357a22bfdb3 /gcc/java/jcf.h | |
parent | b9ef73ea54eaf06057e83d363f04312aa918b804 (diff) | |
download | gcc-a32999346f5fcfda44737f45e93e631d421c608e.zip gcc-a32999346f5fcfda44737f45e93e631d421c608e.tar.gz gcc-a32999346f5fcfda44737f45e93e631d421c608e.tar.bz2 |
jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f, not 0x1f.
* jcf.h (UTF8_GET): Mask first byte of 3-byte encoding with 0x0f,
not 0x1f.
From-SVN: r25369
Diffstat (limited to 'gcc/java/jcf.h')
-rw-r--r-- | gcc/java/jcf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h index 32f2759..4ec1fcd 100644 --- a/gcc/java/jcf.h +++ b/gcc/java/jcf.h @@ -241,7 +241,7 @@ extern int jcf_unexpected_eof PROTO ((JCF*, int)); ? (((PTR)[-2] & 0x1F) << 6) + ((PTR)[-1] & 0x3F) \ : (*(PTR) & 0xF0) == 0xE0 && ((PTR) += 3) <= (LIMIT) \ && ((PTR)[-2] & 0xC0) == 0x80 && ((PTR)[-1] & 0xC0) == 0x80 \ - ? (((PTR)[-3]&0x1F) << 12) + (((PTR)[-2]&0x3F) << 6) + ((PTR)[-1]&0x3F) \ + ? (((PTR)[-3]&0x0F) << 12) + (((PTR)[-2]&0x3F) << 6) + ((PTR)[-1]&0x3F) \ : ((PTR)++, -1)) extern char *jcf_write_base_directory; |