1
0
Fork 0
forked from len0rd/rockbox

Long policy again

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6346 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-04-25 09:49:08 +00:00
parent c27d51c553
commit de4ef019b9

View file

@ -73,7 +73,8 @@ short readshort(void* value) {
long readlong(void* value) {
unsigned char* bytes = (unsigned char*) value;
return bytes[0] | (bytes[1] << 8) | (bytes[2] << 16) | (bytes[3] << 24);
return (long)bytes[0] | ((long)bytes[1] << 8) |
((long)bytes[2] << 16) | ((long)bytes[3] << 24);
}
#endif