projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a41ead
)
Fix an "overflow in implicit constant conversion" warning in mEndPrimitive when
author
Eric Anholt
<anholt@FreeBSD.org>
Thu, 10 Jun 2004 09:13:31 +0000
(09:13 +0000)
committer
Eric Anholt
<anholt@FreeBSD.org>
Thu, 10 Jun 2004 09:13:31 +0000
(09:13 +0000)
more warning flags are enabled (such as in the DRI tree). Make the second line
prettier, too.
Reported by: ajax
src/mesa/drivers/dri/sis/sis_context.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/sis/sis_context.h
b/src/mesa/drivers/dri/sis/sis_context.h
index 0ea2e2a59acae812e86bb92d70843c9e3ae84869..36754022215dc174da2bfdedff0db4facaec596f 100644
(file)
--- 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 GL
int *)(smesa->IOBase + 0x8b60) = (GLint)(-1)
; \
+ *(volatile
GLubyte *)(smesa->IOBase + REG_3D_EndPrimitiveList) = 0xff
; \
+ *(volatile GL
uint *)(smesa->IOBase + 0x8b60) = 0xffffffff
; \
}
#define sis_fatal_error(msg) \