freemyipod r624 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r623‎ | r624 | r625 >
Date:16:08, 18 February 2011
Author:theseven
Status:new
Tags:
Comment:
emCORE: Add some parantheses for clarity
Modified paths:
  • /emcore/trunk/target/ipodnano2g/ftl.c (modified) (history)

Diff [purge]

Index: emcore/trunk/target/ipodnano2g/ftl.c
@@ -1325,7 +1325,7 @@
13261326 DEBUGF("FTL: Reading %d sectors starting at %d", count, sector);
13271327 #endif
13281328
1329 - if ((uint32_t)buffer & (CACHEALIGN_SIZE - 1))
 1329+ if (((uint32_t)buffer) & (CACHEALIGN_SIZE - 1))
13301330 panicf(PANIC_KILLTHREAD,
13311331 "ftl_read: Misaligned data buffer at %08X (sector %lu, count %lu)",
13321332 (unsigned int)buffer, sector, count);
@@ -2002,7 +2002,7 @@
20032003 DEBUGF("FTL: Writing %d sectors starting at %d", count, sector);
20042004 #endif
20052005
2006 - if ((uint32_t)buffer & (CACHEALIGN_SIZE - 1))
 2006+ if (((uint32_t)buffer) & (CACHEALIGN_SIZE - 1))
20072007 panicf(PANIC_KILLTHREAD,
20082008 "ftl_write: Misaligned data buffer at %08X (sector %lu, count %lu)",
20092009 (unsigned int)buffer, sector, count);