Fix 64bit warnings

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9375 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-03-30 21:43:24 +00:00
parent cfc97a1e6f
commit e523041468

View file

@ -862,7 +862,7 @@ static int randomise_playlist(struct playlist_info* playlist,
{ {
int count; int count;
int candidate; int candidate;
int store; long store;
unsigned int current = playlist->indices[playlist->index]; unsigned int current = playlist->indices[playlist->index];
/* seed 0 is used to identify sorted playlist for resume purposes */ /* seed 0 is used to identify sorted playlist for resume purposes */
@ -885,7 +885,7 @@ static int randomise_playlist(struct playlist_info* playlist,
#ifdef HAVE_DIRCACHE #ifdef HAVE_DIRCACHE
if (playlist->filenames) if (playlist->filenames)
{ {
store = (int)playlist->filenames[candidate]; store = (long)playlist->filenames[candidate];
playlist->filenames[candidate] = playlist->filenames[count]; playlist->filenames[candidate] = playlist->filenames[count];
playlist->filenames[count] = (struct dircache_entry *)store; playlist->filenames[count] = (struct dircache_entry *)store;
} }