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

Merge branch 'bug/golomb-warning' into 'main'

Fix msbuild golomb warning

See merge request beyondaka/beyond-protocol!45
parents 51d8387b a792f4df
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