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:
parent
c27d51c553
commit
de4ef019b9
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue