mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Properly cast things to avoid shiny yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20571 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0ece30a726
commit
29f390e227
1 changed files with 1 additions and 1 deletions
|
|
@ -868,7 +868,7 @@ static void transfer_completed(void)
|
|||
}
|
||||
int length=0;
|
||||
struct transfer_descriptor* td=&td_array[pipe*NUM_TDS_PER_EP];
|
||||
while(td!=DTD_NEXT_TERMINATE && td!=0)
|
||||
while(td!=(struct transfer_descriptor*)DTD_NEXT_TERMINATE && td!=0)
|
||||
{
|
||||
length += ((td->reserved & DTD_RESERVED_LENGTH_MASK) -
|
||||
((td->size_ioc_sts & DTD_PACKET_SIZE) >> DTD_LENGTH_BIT_POS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue