projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ab5517
)
Coverity #459: Silly off-by-one error.
author
Adam Jackson
<ajax@freedesktop.org>
Mon, 3 Apr 2006 00:18:03 +0000
(
00:18
+0000)
committer
Adam Jackson
<ajax@freedesktop.org>
Mon, 3 Apr 2006 00:18:03 +0000
(
00:18
+0000)
src/mesa/drivers/dri/common/glcontextmodes.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/common/glcontextmodes.c
b/src/mesa/drivers/dri/common/glcontextmodes.c
index d12979914973fcf21edcf806f2848d4a272be980..f9e6715fcd28ec59142019dd52a9626f1455533c 100644
(file)
--- a/
src/mesa/drivers/dri/common/glcontextmodes.c
+++ b/
src/mesa/drivers/dri/common/glcontextmodes.c
@@
-104,7
+104,7
@@
_gl_convert_to_x_visual_type( int visualType )
GrayScale, StaticGray
};
- return ( (unsigned) (visualType - GLX_TRUE_COLOR) <
=
NUM_VISUAL_TYPES )
+ return ( (unsigned) (visualType - GLX_TRUE_COLOR) < NUM_VISUAL_TYPES )
? x_visual_types[ visualType - GLX_TRUE_COLOR ] : -1;
}