summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/python/p_texture.i
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-03-30 17:09:03 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-03-30 17:19:11 +0100
commitaf25470a5430c68e157489ff095baa5d548d8783 (patch)
tree7e596675923268ab1c5f2a424f5ea141beabd14c /src/gallium/state_trackers/python/p_texture.i
parent844868048f404ab941cc2e75358b77463ee67482 (diff)
python: Force unsigned comparison.
Diffstat (limited to 'src/gallium/state_trackers/python/p_texture.i')
-rw-r--r--src/gallium/state_trackers/python/p_texture.i2
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 b97d188973..47bcd4ba3c 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");