summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorjenny.q.cao <[email protected]>2018-05-16 01:02:00 -0600
committerBrian Paul <[email protected]>2018-05-16 13:02:43 -0600
commit1261b34cd592822703a6848e78963c011447d2e7 (patch)
treef3a79308aa854fd74c436ecf9ddc1df4c1d7a3c7 /src/mesa
parentf806cc9eb6be1a84a9987b142e7fce1ec2cb7973 (diff)
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 <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 62d4f1ea5d7..0bf5c1ff0c4 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -3068,7 +3068,7 @@ _mesa_GetFixedv(GLenum pname, GLfixed *params)
break;
case TYPE_ENUM16:
- params[0] = INT_TO_FIXED(((GLenum16 *) p)[0]);
+ params[0] = INT_TO_FIXED((GLint)(((GLenum16 *) p)[0]));
break;
case TYPE_INT_N: