From af25470a5430c68e157489ff095baa5d548d8783 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 30 Mar 2009 17:09:03 +0100 Subject: [PATCH] python: Force unsigned comparison. --- src/gallium/state_trackers/python/p_texture.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/python/p_texture.i b/src/gallium/state_trackers/python/p_texture.i index b97d1889737..47bcd4ba3c6 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"); -- 2.30.2