python: Force unsigned comparison.
[mesa.git] / 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");