X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinaryparser.cpp;h=b55c7af3e1a8c76bc8f6c2c0855a4cea6fea7e17;hb=08576b49c8bfb6cd841724dc5124d40af9475eb8;hp=ba6414bc77a369a7eb2d7c51e06e412aee16fb0a;hpb=a02c84384a101c0dec48b6aa2dee53bac4bbd034;p=libs%2Fdatafile.git diff --git a/source/binaryparser.cpp b/source/binaryparser.cpp index ba6414b..b55c7af 100644 --- a/source/binaryparser.cpp +++ b/source/binaryparser.cpp @@ -110,7 +110,7 @@ long long BinaryParser::parse_int() { int c=in.get(); - result=result<<7 | c&0x7F; + result=(result<<7) | (c&0x7F); bits+=7; if(!(c&0x80))