diff --git a/src/IKVM.ByteCode/Parsing/ConstantValueAttributeRecord.cs b/src/IKVM.ByteCode/Parsing/ConstantValueAttributeRecord.cs index 325105a..0d1d11d 100644 --- a/src/IKVM.ByteCode/Parsing/ConstantValueAttributeRecord.cs +++ b/src/IKVM.ByteCode/Parsing/ConstantValueAttributeRecord.cs @@ -1,17 +1,17 @@ namespace IKVM.ByteCode.Parsing { - public sealed record ConstantValueAttributeRecord(ConstantHandle Handle) : AttributeRecord + public sealed record ConstantValueAttributeRecord(ConstantHandle Value) : AttributeRecord { public static bool TryReadConstantValueAttribute(ref ClassFormatReader reader, out AttributeRecord attribute) { attribute = null; - if (reader.TryReadU2(out ushort handleIndex) == false) + if (reader.TryReadU2(out ushort valueIndex) == false) return false; - attribute = new ConstantValueAttributeRecord(new ConstantHandle(handleIndex)); + attribute = new ConstantValueAttributeRecord(new ConstantHandle(valueIndex)); return true; }