glsl: Use signed array index in update_max_array_access()
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 22 Sep 2014 22:10:28 +0000 (15:10 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 22 Oct 2014 23:13:37 +0000 (16:13 -0700)
commit7a652c41b4de4bdbb954a4ebf6cdb605d197e999
tree8a438097f912124820acdddf5d9c083fea3febe2
parent6f0089e92e9a3b096b978bb09a87db6a38acb7b2
glsl: Use signed array index in update_max_array_access()

Avoids a crash in case of negative array index is used in a
shader program.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/glsl/ast_array_index.cpp