[Mesa-dev] [PATCH] glsl: silence signed/unsigned comparison warning
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Sep 20 07:05:10 UTC 2017
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 09/20/2017 04:22 AM, Brian Paul wrote:
> ---
> src/compiler/glsl/ir.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp
> index 49db56e..18bf1eb 100644
> --- a/src/compiler/glsl/ir.cpp
> +++ b/src/compiler/glsl/ir.cpp
> @@ -1100,7 +1100,7 @@ ir_constant *
> ir_constant::get_record_field(int idx)
> {
> assert(this->type->is_record());
> - assert(idx >= 0 && idx < this->type->length);
> + assert(idx >= 0 && (unsigned) idx < this->type->length);
>
> return const_elements[idx];
> }
>
More information about the mesa-dev
mailing list