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 86480c8..a928b20 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) )
 
 
 /**********************************************************************/