[xiph-commits] r18076 - trunk/vorbis/lib

giles at svn.xiph.org giles at svn.xiph.org
Thu Sep 1 19:44:49 PDT 2011


Author: giles
Date: 2011-09-01 19:44:49 -0700 (Thu, 01 Sep 2011)
New Revision: 18076

Modified:
   trunk/vorbis/lib/codebook.c
Log:
Add even more parentheses to silence warnings.

This is a more aggressive fix than r17688. This version is from
a similar patch to the Mozilla tree by Atul Aggarwal. See
https://bugzilla.mozilla.org/show_bug.cgi?id=666672 for the
history.


Modified: trunk/vorbis/lib/codebook.c
===================================================================
--- trunk/vorbis/lib/codebook.c	2011-09-02 02:40:30 UTC (rev 18075)
+++ trunk/vorbis/lib/codebook.c	2011-09-02 02:44:49 UTC (rev 18076)
@@ -248,7 +248,7 @@
       }
 
       /* quantized values */
-      if((quantvals*s->q_quant+7)>>3>opb->storage-oggpack_bytes(opb))
+      if(((quantvals*s->q_quant+7)>>3)>opb->storage-oggpack_bytes(opb))
         goto _eofout;
       s->quantlist=_ogg_malloc(sizeof(*s->quantlist)*quantvals);
       for(i=0;i<quantvals;i++)



More information about the commits mailing list