Skip to content

Commit e39b726

Browse files
Update comment
1 parent bd042ac commit e39b726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ class ClassfileParser(
788788
if (scan(tpnme.TASTYATTR)) {
789789
val attrLen = in.nextInt
790790
val bytes = in.nextBytes(attrLen)
791-
if (bytes.length == 16) { // A tasty attribute with that has only a UUID implies the existence of the .tasty file
791+
if (attrLen == 16) { // A tasty attribute with that has only a UUID (16 bytes) implies the existence of the .tasty file
792792
val tastyBytes: Array[Byte] = classfile.underlyingSource match { // TODO: simplify when #3552 is fixed
793793
case None =>
794794
ctx.error("Could not load TASTY from .tasty for virtual file " + classfile)

0 commit comments

Comments
 (0)