Mesa (master): python: Force unsigned comparison.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Mon Mar 30 19:11:52 UTC 2009
Module: Mesa
Branch: master
Commit: af25470a5430c68e157489ff095baa5d548d8783
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=af25470a5430c68e157489ff095baa5d548d8783
Author: José Fonseca <jfonseca at vmware.com>
Date: Mon Mar 30 17:09:03 2009 +0100
python: Force unsigned comparison.
---
src/gallium/state_trackers/python/p_texture.i | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/state_trackers/python/p_texture.i b/src/gallium/state_trackers/python/p_texture.i
index b97d188..47bcd4b 100644
--- a/src/gallium/state_trackers/python/p_texture.i
+++ b/src/gallium/state_trackers/python/p_texture.i
@@ -84,7 +84,7 @@
{
struct st_surface *surface;
- if(face >= ($self->target == PIPE_TEXTURE_CUBE ? 6 : 1))
+ if(face >= ($self->target == PIPE_TEXTURE_CUBE ? 6U : 1U))
SWIG_exception(SWIG_ValueError, "face out of bounds");
if(level > $self->last_level)
SWIG_exception(SWIG_ValueError, "level out of bounds");
More information about the mesa-commit
mailing list