freemyipod r70 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r69‎ | r70 | r71 >
Date:23:00, 9 August 2010
Author:theseven
Status:new
Tags:
Comment:
Fix red
Modified paths:
  • /embios/trunk/file.c (modified) (history)

Diff [purge]

Index: embios/trunk/file.c
@@ -524,7 +524,7 @@
525525 /* read/write whole sectors right into/from the supplied buffer */
526526 sectors = count / SECTOR_SIZE;
527527 if ( sectors ) {
528 - if (buf+nread & (CACHEALIGN_SIZE - 1))
 528+ if (((uint32_t)buf + nread) & (CACHEALIGN_SIZE - 1))
529529 {
530530 if (write) memcpy(file->cache, buf+nread, SECTOR_SIZE);
531531 rc = fat_readwrite(&(file->fatfile), sectors, file->cache, write );