summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bitwise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitwise.c b/src/bitwise.c
index 719f20c..b1514cc 100644
--- a/src/bitwise.c
+++ b/src/bitwise.c
@@ -369,7 +369,7 @@ long oggpackB_read(oggpack_buffer *b,int bits){
}
}
}
- ret=((ret&0xffffffff)>>(m>>1))>>((m+1)>>1);
+ ret=((ret&0xffffffffUL)>>(m>>1))>>((m+1)>>1);
overflow: