forked from len0rd/rockbox
int -> long where needed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5643 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
36b8e13f47
commit
cea551dd9c
4 changed files with 22 additions and 22 deletions
|
|
@ -39,9 +39,9 @@
|
|||
12-15: nr of sectors in partition
|
||||
*/
|
||||
|
||||
#define BYTES2INT32(array,pos) \
|
||||
(array[pos] | (array[pos+1] << 8 ) | \
|
||||
(array[pos+2] << 16 ) | (array[pos+3] << 24 ))
|
||||
#define BYTES2INT32(array,pos) \
|
||||
((long)array[pos] | (long)(array[pos+1] << 8 ) | \
|
||||
((long)array[pos+2] << 16 ) | ((long)array[pos+3] << 24 ))
|
||||
|
||||
static struct partinfo part[8]; /* space for 4 partitions on 2 drives */
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ struct partinfo* disk_init(IF_MV_NONVOID(int drive))
|
|||
pinfo[i].start = BYTES2INT32(ptr, 8);
|
||||
pinfo[i].size = BYTES2INT32(ptr, 12);
|
||||
|
||||
DEBUGF("Part%d: Type %02x, start: %08x size: %08x\n",
|
||||
DEBUGF("Part%d: Type %02x, start: %08lx size: %08lx\n",
|
||||
i,pinfo[i].type,pinfo[i].start,pinfo[i].size);
|
||||
|
||||
/* extended? */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue