From 96d51719af4816fe50c6f6315c1a9bf9982559b7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 20 Jul 2011 13:30:13 -0600 Subject: [PATCH] ... --- src/calibre/ebooks/mobi/writer2/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/writer2/utils.py b/src/calibre/ebooks/mobi/writer2/utils.py index dc9526eb77..cd0ee453c3 100644 --- a/src/calibre/ebooks/mobi/writer2/utils.py +++ b/src/calibre/ebooks/mobi/writer2/utils.py @@ -161,7 +161,7 @@ def get_trailing_data(record, extra_data_flags): ''' data = OrderedDict() for i in xrange(16, -1, -1): - flag = 2**i + flag = 1 << i # 2**i if flag & extra_data_flags: if i == 0: # Only the first two bits are used for the size since there can