mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 11:15:59 +01:00
Fix "left shift count >= width of type" bug
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9730 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9ec428f4e3
commit
bf4770a920
@ -532,7 +532,7 @@ static ulonglong readSize(MatroskaFile *mf) {
|
||||
|
||||
static inline longlong readVLSInt(MatroskaFile *mf) {
|
||||
static longlong bias[8] = { (1<<6)-1, (1<<13)-1, (1<<20)-1, (1<<27)-1,
|
||||
(1<<34)-1, (1<<41)-1, (1<<48)-1, (1<<55)-1 };
|
||||
(1LL<<34)-1, (1LL<<41)-1, (1LL<<48)-1, (1LL<<55)-1 };
|
||||
|
||||
int m;
|
||||
longlong v = readVLUIntImp(mf,&m);
|
||||
|
Loading…
x
Reference in New Issue
Block a user