mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a couple of casts to some Ogg-Vorbis code to avoid the address-sanitiser complaining about bit shift ranges
This commit is contained in:
parent
baa8bbf300
commit
df6d7fa57b
1 changed files with 3 additions and 3 deletions
|
|
@ -329,11 +329,11 @@ long oggpack_read(oggpack_buffer *b,int bits){
|
|||
if(bits>8){
|
||||
ret|=b->ptr[1]<<(8-b->endbit);
|
||||
if(bits>16){
|
||||
ret|=b->ptr[2]<<(16-b->endbit);
|
||||
ret|=((unsigned long) b->ptr[2]) << (16 - b->endbit);
|
||||
if(bits>24){
|
||||
ret|=b->ptr[3]<<(24-b->endbit);
|
||||
ret |= ((unsigned long) b->ptr[3]) << (24 - b->endbit);
|
||||
if(bits>32 && b->endbit){
|
||||
ret|=b->ptr[4]<<(32-b->endbit);
|
||||
ret |= ((unsigned long) b->ptr[4]) << (32 - b->endbit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue