[TupleVariation] Minor

This commit is contained in:
Behdad Esfahbod 2021-04-07 16:55:56 -06:00
parent d5d771b2bf
commit 4cbf6ae1c4

View File

@ -346,9 +346,8 @@ class TupleVariation(object):
return bytearr return bytearr
@staticmethod @staticmethod
def encodeDeltaRunAsZeroes_(deltas, offset, bytearr): def encodeDeltaRunAsZeroes_(deltas, pos, bytearr):
runLength = 0 runLength = 0
pos = offset
numDeltas = len(deltas) numDeltas = len(deltas)
while pos < numDeltas and runLength < 64 and deltas[pos] == 0: while pos < numDeltas and runLength < 64 and deltas[pos] == 0:
pos += 1 pos += 1