From bf4770a9205ede6bf1abff4fa91048718ae40ce9 Mon Sep 17 00:00:00 2001 From: beveloper Date: Tue, 2 Nov 2004 00:21:31 +0000 Subject: [PATCH] Fix "left shift count >= width of type" bug git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9730 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../media/plugins/matroska/libMatroskaParser/MatroskaParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/media/plugins/matroska/libMatroskaParser/MatroskaParser.c b/src/add-ons/media/plugins/matroska/libMatroskaParser/MatroskaParser.c index b2c1e1e877..81076e0b61 100644 --- a/src/add-ons/media/plugins/matroska/libMatroskaParser/MatroskaParser.c +++ b/src/add-ons/media/plugins/matroska/libMatroskaParser/MatroskaParser.c @@ -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);