python: Force unsigned comparison.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 30 Mar 2009 16:09:03 +0000 (17:09 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 30 Mar 2009 16:19:11 +0000 (17:19 +0100)
src/gallium/state_trackers/python/p_texture.i

index b97d1889737dedf96237910b86c73862369e06b6..47bcd4ba3c6af8e4b236e307daef940839daa670 100644 (file)
@@ -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");