X-Git-Url: http://dolda2000.com/gitweb/?p=pycfml.git;a=blobdiff_plain;f=classfile%2Fbinfmt.py;fp=classfile%2Fbinfmt.py;h=67a2d3c9e775691fdf0a7051985801836890fc89;hp=57671f9c90e84177e2c4a5800fad1e8c3bf8739f;hb=eaf86c37f4bd3783414cde4ad622fa3061ef0eb6;hpb=582de7bb269276db17d1c50b7fc79bba4c2fe908 diff --git a/classfile/binfmt.py b/classfile/binfmt.py index 57671f9..67a2d3c 100644 --- a/classfile/binfmt.py +++ b/classfile/binfmt.py @@ -26,7 +26,7 @@ def mutf8dec(bs): b = bs[i] i += 1 if b & 0xc0 != 0x80: raise fmterror("invalid utf8 continuation byte") - acc = (acc << 6) | bs & 0x3f + acc = (acc << 6) | b & 0x3f c -= 1 if iacc == 0 and ic != 2 and acc != 0: raise fmterror("invalid utf8 compound") ret += chr(acc)