[xiph-commits] r16715 - trunk/theora/lib

tterribe at svn.xiph.org tterribe at svn.xiph.org
Sat Nov 21 19:46:08 PST 2009


Author: tterribe
Date: 2009-11-21 19:46:08 -0800 (Sat, 21 Nov 2009)
New Revision: 16715

Modified:
   trunk/theora/lib/bitpack.h
Log:
Change the type of the bitpacker window to size_t.
This solves a problem for TI C64x+ DSPs, where sizeof(long)==8, but longs
 really only contain 40 bits of data.
It should still yield the preferred type on every other platform (e.g., 64
 bits for x86-64), and as a bonus is now also correct for 64-bit Windows.


Modified: trunk/theora/lib/bitpack.h
===================================================================
--- trunk/theora/lib/bitpack.h	2009-11-22 03:34:21 UTC (rev 16714)
+++ trunk/theora/lib/bitpack.h	2009-11-22 03:46:08 UTC (rev 16715)
@@ -16,11 +16,12 @@
  ********************************************************************/
 #if !defined(_bitpack_H)
 # define _bitpack_H (1)
+# include <stddef.h>
 # include <limits.h>
 
 
 
-typedef unsigned long      oc_pb_window;
+typedef size_t             oc_pb_window;
 typedef struct oc_pack_buf oc_pack_buf;
 
 



More information about the commits mailing list