mesa: cast the GLenum16 to GLint to avoid compile warning on android
authorjenny.q.cao <jenny.q.cao@intel.com>
Wed, 16 May 2018 07:02:00 +0000 (01:02 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 16 May 2018 19:02:43 +0000 (13:02 -0600)
commit1261b34cd592822703a6848e78963c011447d2e7
treef3a79308aa854fd74c436ecf9ddc1df4c1d7a3c7
parentf806cc9eb6be1a84a9987b142e7fce1ec2cb7973
mesa: cast the GLenum16 to GLint to avoid compile warning on android

Cast the enum to GLint to avoid the compile warning:
/src/mesa/main/get.c:3005:19:
warning: comparison of constant -32768 with expression of type
'GLenum16' (aka 'unsigned short') is always false
-Wtautologicalia-constant-out-of-range-compare

Tests: compilation without this warning
Signed-off-by: jenny.q.cao <jenny.q.cao@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/get.c