mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
58ce2642f0
commit
96d51719af
@ -161,7 +161,7 @@ def get_trailing_data(record, extra_data_flags):
|
|||||||
'''
|
'''
|
||||||
data = OrderedDict()
|
data = OrderedDict()
|
||||||
for i in xrange(16, -1, -1):
|
for i in xrange(16, -1, -1):
|
||||||
flag = 2**i
|
flag = 1 << i # 2**i
|
||||||
if flag & extra_data_flags:
|
if flag & extra_data_flags:
|
||||||
if i == 0:
|
if i == 0:
|
||||||
# Only the first two bits are used for the size since there can
|
# Only the first two bits are used for the size since there can
|
||||||
|
Loading…
x
Reference in New Issue
Block a user