python: Force unsigned comparison.

This commit is contained in:
José Fonseca 2009-03-30 17:09:03 +01:00
parent 844868048f
commit af25470a54

View 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");