platform/android_nosdl: use ARRAYSIZE

This commit is contained in:
mittorn 2023-12-16 22:31:17 +03:00 committed by Alibek Omarov
parent d6cfc65ac0
commit 26cbb1d6bf
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ DECLARE_JNI_INTERFACE( void, nativeKey, jint down, jint code )
}
else
{
if( code >= ( sizeof( s_android_scantokey ) / sizeof( s_android_scantokey[0] ) ) )
if( code >= ARRAYSIZE( s_android_scantokey ))
{
Con_DPrintf( "nativeKey: unknown Android key %d\n", code );
return;