##// END OF EJS Templates
readmarkers: hoist subtraction out of loop comparison
Matt Mackall -
r23799:ffca0a14 default
parent child Browse files
Show More
@@ -287,9 +287,9 b' def _fm0decodemeta(data):'
287 287
288 288 def _fm1readmarkers(data, off=0):
289 289 # Loop on markers
290 l = len(data)
290 stop = len(data) - _fm1fsize
291 291 ufixed = util.unpacker(_fm1fixed)
292 while off + _fm1fsize <= l:
292 while off <= stop:
293 293 # read fixed part
294 294 o1 = off + _fm1fsize
295 295 fixeddata = ufixed(data[off:o1])
General Comments 0
You need to be logged in to leave comments. Login now