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
Branches
Tags
No related merge requests found
...@@ -84,9 +84,8 @@ static inline int golombSigned(ParseContext *ctx) { ...@@ -84,9 +84,8 @@ static inline int golombSigned(ParseContext *ctx) {
buf >>= log; buf >>= log;
ctx->index += 32 - log; ctx->index += 32 - log;
if(buf & 1) buf = -(buf>>1); if(buf & 1) return -static_cast<int>(buf>>1);
else buf = (buf>>1); else return buf >> 1;
return buf;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment