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

Fix msbuild golomb warning

parent e28777ef
No related branches found
No related tags found
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