Skip to content
Snippets Groups Projects
Commit 759de3bc authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Merge branch 'main' of gitlab.utu.fi:beyondaka/beyond-protocol into main

parents 6a926a79 5dad2b8c
No related branches found
No related tags found
No related merge requests found
......@@ -84,9 +84,8 @@ static inline int golombSigned(ParseContext *ctx) {
buf >>= log;
ctx->index += 32 - log;
if(buf & 1) buf = -(buf>>1);
else buf = (buf>>1);
return buf;
if(buf & 1) return -static_cast<int>(buf>>1);
else return buf >> 1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment