[xiph-commits] r6832 - trunk/ogg/src
xiphmont at dactyl.lonelymoon.com
xiphmont
Fri Jun 25 13:41:51 PDT 2004
Author: xiphmont
Date: Fri Jun 25 13:41:51 2004
New Revision: 6832
Modified:
trunk/ogg/src/bitwise.c
Log:
Correct masking bug (incorrect implicit cast) in oggpackB_read that's
exposed by 64 bit systems; the 32 bit mask is signed default and being
sign-extended by 64 bit.
Modified: trunk/ogg/src/bitwise.c
===================================================================
--- trunk/ogg/src/bitwise.c 2004-06-16 01:36:50 UTC (rev 6831)
+++ trunk/ogg/src/bitwise.c 2004-06-17 00:58:19 UTC (rev 6832)
@@ -369,7 +369,7 @@
}
}
}
- ret=((ret&0xffffffff)>>(m>>1))>>((m+1)>>1);
+ ret=((ret&0xffffffffUL)>>(m>>1))>>((m+1)>>1);
overflow:
More information about the commits
mailing list