From: Eric Anholt Date: Thu, 10 Jun 2004 09:13:31 +0000 (+0000) Subject: Fix an "overflow in implicit constant conversion" warning in mEndPrimitive when X-Git-Tag: 062012170305~24371 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=932e6fb420f3148cba101b321b0e031757bc6915;p=profile%2Fivi%2Fmesa.git Fix an "overflow in implicit constant conversion" warning in mEndPrimitive when more warning flags are enabled (such as in the DRI tree). Make the second line prettier, too. Reported by: ajax --- diff --git a/src/mesa/drivers/dri/sis/sis_context.h b/src/mesa/drivers/dri/sis/sis_context.h index 0ea2e2a..3675402 100644 --- a/src/mesa/drivers/dri/sis/sis_context.h +++ b/src/mesa/drivers/dri/sis/sis_context.h @@ -391,8 +391,8 @@ struct sis_context #define mEndPrimitive() \ { \ - *(volatile char *)(smesa->IOBase + REG_3D_EndPrimitiveList) = 0xFF; \ - *(volatile GLint *)(smesa->IOBase + 0x8b60) = (GLint)(-1); \ + *(volatile GLubyte *)(smesa->IOBase + REG_3D_EndPrimitiveList) = 0xff; \ + *(volatile GLuint *)(smesa->IOBase + 0x8b60) = 0xffffffff; \ } #define sis_fatal_error(msg) \