Skip to content

Commit ea3381a

Browse files
austnwilpopematt
andauthored
Apply suggestion from @popematt
Co-authored-by: Matthew Pope <81593196+popematt@users.noreply.github.com>
1 parent 15ac400 commit ea3381a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/amazon/ion/bytecode/bin11/bytearray/ListOpcodeHandlers.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ internal object TaglessElementListOpcodeHandler : OpcodeToBytecodeHandler {
172172
else -> -1
173173
}
174174

175-
val containerSizeValueAndLength = PrimitiveDecoder.readFlexUIntValueAndLength(source, p)
176-
val containerLength = containerSizeValueAndLength.toInt()
177-
val prefixLength = containerSizeValueAndLength.shr(Int.SIZE_BITS).toInt()
178-
p += prefixLength
175+
val childCountValueAndLength = PrimitiveDecoder.readFlexUIntValueAndLength(source, p)
176+
val childCount = childCountValueAndLength.toInt()
177+
val prefixSize = childCountValueAndLength.shr(Int.SIZE_BITS).toInt()
178+
p += prefixSize
179179

180180
// If macroAddress > -1, then it is the address of the macro-shaped values,
181181
// and childOpcode should be ignored.

0 commit comments

Comments
 (0)