added a cast to ADD_POINTERS macro
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 31 Oct 2004 18:54:10 +0000 (18:54 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 31 Oct 2004 18:54:10 +0000 (18:54 +0000)
src/mesa/main/imports.h

index 86480c82b1d8dcd8b3eba14b0496cc87829854d0..a928b20ad56e83fb844c3429e07cd008158ed9a4 100644 (file)
@@ -100,7 +100,7 @@ extern "C" {
  * this macro.
  * Both pointers/offsets are expressed in bytes.
  */
-#define ADD_POINTERS(A, B)  ( (A) + (unsigned long) (B) )
+#define ADD_POINTERS(A, B)  ( (GLubyte *) (A) + (unsigned long) (B) )
 
 
 /**********************************************************************/