summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2004-06-10 09:13:31 +0000
committerEric Anholt <[email protected]>2004-06-10 09:13:31 +0000
commit932e6fb420f3148cba101b321b0e031757bc6915 (patch)
treed76241ff267bd0a80fecdb467c546604a4961031 /src
parent8a41ead407bde36dfd7a632aa2607b4757b09e84 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/sis/sis_context.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/sis/sis_context.h b/src/mesa/drivers/dri/sis/sis_context.h
index 0ea2e2a59ac..36754022215 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) \