mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
python: Force unsigned comparison.
This commit is contained in:
parent
844868048f
commit
af25470a54
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue