assert I've got the plurals vs singular strings right

This commit is contained in:
Eric House 2015-03-24 07:33:24 -07:00
parent 930d72402d
commit 16e3ef9246

View file

@ -410,6 +410,8 @@ and_util_getUserString( XW_UtilCtxt* uc, XP_U16 stringCode )
int index = stringCode - 1; /* see LocalizedStrIncludes.h */ int index = stringCode - 1; /* see LocalizedStrIncludes.h */
XP_ASSERT( index < VSIZE( util->userStrings ) ); XP_ASSERT( index < VSIZE( util->userStrings ) );
XP_ASSERT( 0 == (util->userStringsBits & (1 << index)) );
if ( ! util->userStrings[index] ) { if ( ! util->userStrings[index] ) {
jstring jresult = (*env)->CallObjectMethod( env, util->jutil, mid, jstring jresult = (*env)->CallObjectMethod( env, util->jutil, mid,
stringCode ); stringCode );