freemyipod r618 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r617‎ | r618 | r619 >
Date:01:45, 17 February 2011
Author:theseven
Status:new
Tags:
Comment:
genbbt: Don't waste a few bytes in a corner case
Modified paths:
  • /emcore/trunk/tools/genbbt.c (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/genbbt.c
@@ -41,6 +41,7 @@
4242 while (bbtpages <= 32832)
4343 {
4444 bbtsize = bbtpages << 6;
 45+ l0count = (sectors - bbtsize + 0xfffff) >> 19;
4546 bbt = malloc(bbtsize);
4647 memset(bbt, 0, bbtsize);
4748 int logical = 0;