mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
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>
This commit is contained in:
parent
f806cc9eb6
commit
1261b34cd5
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue